system-configs/ldap.metznet.ca.scm

41 lines
1.5 KiB
Scheme

2023-12-03 14:23:32 -07:00
;; This is an operating system configuration template
;; for a "bare bones" setup, with no X11 display server.
(use-modules (gnu)
(metznet aws)
(metznet machines ldap)
(metznet system base-system)
(gnu packages vim)
2023-12-03 18:17:19 -07:00
(gnu packages version-control)
2023-12-03 14:23:32 -07:00
(gnu packages shells))
(operating-system
(inherit ldap.metznet.ca)
(bootloader (bootloader-configuration
(bootloader grub-minimal-bootloader)
(targets '("/dev/nvme0n1"))))
(file-systems (cons (file-system
(device (file-system-label "ldap-guix-data"))
(mount-point "/")
(type "ext4")) %base-file-systems))
2023-12-03 18:17:19 -07:00
(groups (cons (user-group
(system? #t)
(name "aws")) %metznet-base-groups))
2023-12-03 14:23:32 -07:00
(users (cons (user-account
(name "aws")
2023-12-03 18:17:19 -07:00
(group "aws")
(shell (file-append zsh "/bin/zsh")))
%metznet-base-user-accounts))
2023-12-03 14:23:32 -07:00
(sudoers-file (plain-file "sudoers"
2023-12-03 18:17:19 -07:00
(string-join (list
"root ALL=(ALL:ALL) NOPASSWD:ALL"
"%aws ALL=(ALL:ALL) ALL"
"%aws ALL=(root) NOPASSWD:/run/setuid-programs/passwd" "") "\n")))
2023-12-03 14:23:32 -07:00
2023-12-03 18:17:19 -07:00
(packages (cons* git neovim %metznet-base-packages))
2023-12-03 14:23:32 -07:00
(services
(cons* (service aws-service-type) ldap-services)))