|
|
|
@ -152,13 +152,23 @@
|
|
|
|
|
(define-configuration/no-serialization metznet-system-configuration
|
|
|
|
|
(certs (file-like le-certs)
|
|
|
|
|
"certificate package")
|
|
|
|
|
(pam-services (list-of-strings (list
|
|
|
|
|
"su"
|
|
|
|
|
"gdm-password"
|
|
|
|
|
"login"
|
|
|
|
|
"sshd"
|
|
|
|
|
"passwd"))
|
|
|
|
|
"list of pam services to configure"))
|
|
|
|
|
(channels-file (file-like (scheme-file
|
|
|
|
|
"channels.scm"
|
|
|
|
|
#~(append (list
|
|
|
|
|
(channel
|
|
|
|
|
(name 'metznet-channel)
|
|
|
|
|
(url
|
|
|
|
|
"https://git.metznet.ca/MetzNet/metznet-channel.git"))
|
|
|
|
|
(channel
|
|
|
|
|
(name 'nonguix)
|
|
|
|
|
(url
|
|
|
|
|
"https://gitlab.com/nonguix/nonguix.git"))
|
|
|
|
|
%default-channels)))))
|
|
|
|
|
"channels.scm")
|
|
|
|
|
(pam-services (list-of-strings (list "su" "gdm-password" "login" "sshd"
|
|
|
|
|
"passwd"))
|
|
|
|
|
"list of pam services to configure")
|
|
|
|
|
unbalanced
|
|
|
|
|
|
|
|
|
|
(define (pam-mkhomedir-service configuration)
|
|
|
|
|
(lambda (pam)
|
|
|
|
@ -181,10 +191,11 @@
|
|
|
|
|
(symlink (string-append #$zsh "/bin/zsh") "/bin/zsh"))))
|
|
|
|
|
|
|
|
|
|
(define (metznet-etc-service configuration)
|
|
|
|
|
`(("openvpn/ta.key" ,(local-file "ta.key"))
|
|
|
|
|
("openvpn/ca.crt" ,(local-file "ca.crt"))
|
|
|
|
|
("openvpn/client.crt" ,(local-file "client.crt"))
|
|
|
|
|
("openvpn/client.key" ,(local-file "client.key"))))
|
|
|
|
|
(("guix/channels.scm" ,())
|
|
|
|
|
("openvpn/ta.key" ,(local-file "ta.key"))
|
|
|
|
|
("openvpn/ca.crt" ,(local-file "ca.crt"))
|
|
|
|
|
("openvpn/client.crt" ,(local-file "client.crt"))
|
|
|
|
|
("openvpn/client.key" ,(local-file "client.key"))))
|
|
|
|
|
|
|
|
|
|
(define metznet-service-type
|
|
|
|
|
(service-type (name 'metznet-service)
|
|
|
|
|