Cleaned up vpn file, and created kerberos server file

master
noah metz 2023-12-03 13:18:42 -07:00
parent cd90ba581e
commit c7fdfde80c
2 changed files with 45 additions and 7 deletions

@ -0,0 +1,42 @@
;; This is an operating system configuration template
;; for a "bare bones" setup, with no X11 display server.
(use-modules (gnu)
(metznet aws)
(metznet machines kerberos)
(metznet system base-system)
(gnu packages vim)
(gnu packages ssh)
(gnu packages python-web)
(gnu packages shells))
(operating-system
(inherit kerberos.metznet.ca)
(bootloader (bootloader-configuration
(bootloader grub-minimal-bootloader)
(targets '("/dev/nvme0n1"))))
(file-systems (cons (file-system
(device (file-system-label "kerberos-guix-data"))
(mount-point "/")
(type "ext4")) %base-file-systems))
(groups (cons (user-group
(system? #t)
(name "admin")) %metznet-base-groups))
(users (cons (user-account
(name "aws")
(group "admin")
(password (crypt "aws" "$6$salt"))
(shell (file-append zsh "/bin/zsh")))
%metznet-base-user-accounts))
(sudoers-file (plain-file "sudoers"
(string-join (list "Defaults mail_badpass"
"root ALL=(ALL:ALL) ALL"
"%admin ALL=(ALL:ALL) ALL" "")
"\n")))
(packages (cons* openssh awscli neovim %metznet-base-packages))
(services
(cons* (service aws-service-type) kerberos-services)))

@ -5,11 +5,7 @@
(metznet aws) (metznet aws)
(metznet machines vpn) (metznet machines vpn)
(metznet system base-system) (metznet system base-system)
(gnu services sssd)
(gnu packages guile)
(gnu packages vim) (gnu packages vim)
(gnu services networking)
(gnu services ssh)
(gnu packages ssh) (gnu packages ssh)
(gnu packages python-web) (gnu packages python-web)
(gnu packages shells)) (gnu packages shells))
@ -20,17 +16,17 @@
(bootloader grub-minimal-bootloader) (bootloader grub-minimal-bootloader)
(targets '("/dev/nvme0n1")))) (targets '("/dev/nvme0n1"))))
(file-systems (cons (file-system (file-systems (cons (file-system
(device (file-system-label "guix-data")) (device (file-system-label "vpn-guix-data"))
(mount-point "/") (mount-point "/")
(type "ext4")) %base-file-systems)) (type "ext4")) %base-file-systems))
(groups (cons (user-group (groups (cons (user-group
(system? #t) (system? #t)
(name "admin")) %base-groups)) (name "admin")) %metznet-base-groups))
(users (cons (user-account (users (cons (user-account
(name "aws") (name "aws")
(group "admin") (group "admin")
(password (crypt "aws" "$6$salt")) (password (crypt "aws" "$6$salt"))
(shell (file-append zsh "/bin/zsh"))) %base-user-accounts)) (shell (file-append zsh "/bin/zsh"))) %metznet-base-user-accounts))
(sudoers-file (plain-file "sudoers" (sudoers-file (plain-file "sudoers"
(string-join (list "Defaults mail_badpass" (string-join (list "Defaults mail_badpass"