added base-server.scm, and moved nslcd config to variable

master
noah metz 2023-11-22 12:30:06 -07:00
parent 9aa657073d
commit 34e9460454
2 changed files with 14 additions and 6 deletions

@ -0,0 +1,4 @@
(define-module (machines base-desktop)
#:use-module (system base-system))
%metznet-base-server-system

@ -134,15 +134,18 @@
; 1) need to create user directory on login ; 1) need to create user directory on login
; 2) need to have /bin/zsh available to use as shell ; 2) need to have /bin/zsh available to use as shell
(define %metznet-nslcd-config (nslcd-configuration
(base "dc=metznet,dc=ca")
(log '("/var/log/nslcd" debug))
(pam-services (list "su" "login" "password" "ssh" "passwd"))
(binddn (or (getenv "LDAP_BINDDN") ""))
(bindpw (or (getenv "LDAP_BINDPW") ""))
(uri (list "ldap://ldap.metznet.ca"))))
(define %metznet-desktop-services (define %metznet-desktop-services
(append (list (service openssh-service-type) (append (list (service openssh-service-type)
(service krb5-service-type %metznet-krb5-config) (service krb5-service-type %metznet-krb5-config)
(service nslcd-service-type (nslcd-configuration (base "dc=metznet,dc=ca") (service nslcd-service-type %metznet-nslcd-config))
(log '("/var/log/nslcd" debug))
(pam-services (list "su" "login" "password" "ssh" "passwd"))
(binddn (or (getenv "LDAP_BINDDN") ""))
(bindpw (or (getenv "LDAP_BINDPW") ""))
(uri (list "ldap://ldap.metznet.ca")))))
(modify-services %desktop-services (modify-services %desktop-services
(guix-service-type config => (guix-configuration (guix-service-type config => (guix-configuration
(inherit config) (inherit config)
@ -171,6 +174,7 @@
(define %metznet-server-services (append (list (define %metznet-server-services (append (list
(service openssh-service-type) (service openssh-service-type)
(service krb5-service-type %metznet-krb5-config) (service krb5-service-type %metznet-krb5-config)
(service nslcd-service-type %metznet-nslcd-config)
(service dhcp-client-service-type) (service dhcp-client-service-type)
(openvpn-client-service (openvpn-client-service
#:config (openvpn-client-configuration #:config (openvpn-client-configuration