|
|
|
@ -96,7 +96,7 @@
|
|
|
|
|
(name "usb")))
|
|
|
|
|
%base-groups))
|
|
|
|
|
|
|
|
|
|
(define %metznet-base-packages (append (list binutils openssh nss-pam-ldapd strace openldap git neovim zsh le-certs nss-certs mit-krb5 openvpn openresolv) %base-packages))
|
|
|
|
|
(define %metznet-base-packages (append (list openssh nss-pam-ldapd openldap git neovim zsh le-certs nss-certs mit-krb5 openvpn openresolv) %base-packages))
|
|
|
|
|
|
|
|
|
|
(define %metznet-desktop-packages (append (list i3-wm i3status dmenu kitty icecat) %metznet-base-packages))
|
|
|
|
|
|
|
|
|
@ -180,10 +180,12 @@
|
|
|
|
|
(list (service-extension pam-root-service-type metznet-pam-services)))
|
|
|
|
|
(default-value '())))
|
|
|
|
|
|
|
|
|
|
(define pam-service-list (list "su" "gdm-password" "login" "sshd" "passwd"))
|
|
|
|
|
|
|
|
|
|
(define %metznet-nslcd-config (nslcd-configuration
|
|
|
|
|
(base "dc=metznet,dc=ca")
|
|
|
|
|
(log '("/var/log/nslcd" debug))
|
|
|
|
|
(pam-services (list "su" "login" "sshd" "passwd"))
|
|
|
|
|
(pam-services pam-service-list)
|
|
|
|
|
(filters (list '(group "(objectClass=posixGroupAux)")))
|
|
|
|
|
(binddn (or (getenv "LDAP_BINDDN") ""))
|
|
|
|
|
(bindpw (or (getenv "LDAP_BINDPW") ""))
|
|
|
|
@ -197,7 +199,7 @@
|
|
|
|
|
(service krb5-service-type %metznet-krb5-config)
|
|
|
|
|
(service pam-krb5-service-type (pam-krb5-configuration (pam-krb5 pam-krb5) (minimum-uid 1000)))
|
|
|
|
|
(service nslcd-service-type %metznet-nslcd-config)
|
|
|
|
|
(service metznet-service-type (list "su" "login" "sshd" "passwd"))))
|
|
|
|
|
(service metznet-service-type pam-service-list)))
|
|
|
|
|
|
|
|
|
|
(define %metznet-nscd-configuration (nscd-configuration
|
|
|
|
|
(caches (append (list
|
|
|
|
@ -215,9 +217,13 @@
|
|
|
|
|
%nscd-default-caches))))
|
|
|
|
|
|
|
|
|
|
(define %metznet-desktop-services
|
|
|
|
|
(append %metznet-services
|
|
|
|
|
(append
|
|
|
|
|
%metznet-services
|
|
|
|
|
(modify-services %desktop-services
|
|
|
|
|
(nscd-service-type config => %metznet-nscd-configuration)
|
|
|
|
|
(elogind-service-type config =>
|
|
|
|
|
(elogind-configuration (inherit config)
|
|
|
|
|
(handle-lid-switch-external-power 'suspend)))
|
|
|
|
|
(guix-service-type config => (guix-configuration
|
|
|
|
|
(inherit config)
|
|
|
|
|
(substitute-urls
|
|
|
|
@ -230,9 +236,6 @@
|
|
|
|
|
(curve Ed25519)
|
|
|
|
|
(q #C1FD53E5D4CE971933EC50C9F307AE2171A2D3B52C804642A7A35F84F3A4EA98#)))"))
|
|
|
|
|
%default-authorized-guix-keys))))
|
|
|
|
|
(elogind-service-type config =>
|
|
|
|
|
(elogind-configuration (inherit config)
|
|
|
|
|
(handle-lid-switch-external-power 'suspend)))
|
|
|
|
|
(udev-service-type config =>
|
|
|
|
|
(udev-configuration (inherit config)
|
|
|
|
|
(rules (append (list %tun-udev-rule
|
|
|
|
@ -242,7 +245,8 @@
|
|
|
|
|
(network-manager-configuration (inherit config)
|
|
|
|
|
(vpn-plugins (list network-manager-openvpn)))))))
|
|
|
|
|
|
|
|
|
|
(define %metznet-server-services (append (append %metznet-services
|
|
|
|
|
(define %metznet-server-services
|
|
|
|
|
(append %metznet-services
|
|
|
|
|
(list
|
|
|
|
|
(service dhcp-client-service-type)
|
|
|
|
|
(openvpn-client-service
|
|
|
|
@ -252,7 +256,7 @@
|
|
|
|
|
(persist-key? #f)
|
|
|
|
|
(tls-auth "/etc/openvpn/ta.key"))))
|
|
|
|
|
(modify-services %base-services
|
|
|
|
|
(nscd-service-type config => %metznet-nscd-configuration)))))
|
|
|
|
|
(nscd-service-type config => %metznet-nscd-configuration))))
|
|
|
|
|
|
|
|
|
|
(define %metznet-base-operating-system
|
|
|
|
|
(operating-system
|
|
|
|
|