2023-12-02 00:43:26 -07:00
|
|
|
(use-modules (gnu)
|
2023-12-02 20:02:34 -07:00
|
|
|
(metznet aws)
|
2023-12-02 00:43:26 -07:00
|
|
|
(gnu services shepherd)
|
2023-12-02 20:02:34 -07:00
|
|
|
(gnu services networking)
|
2023-12-03 18:58:44 -07:00
|
|
|
(gnu packages vim)
|
|
|
|
(gnu packages version-control)
|
2023-12-02 20:02:34 -07:00
|
|
|
(gnu services ssh)
|
|
|
|
(gnu packages shells))
|
2023-12-02 00:43:26 -07:00
|
|
|
|
|
|
|
(operating-system
|
|
|
|
(host-name "guix-ami")
|
|
|
|
(timezone "America/Edmonton")
|
|
|
|
(locale "en_US.utf8")
|
2023-12-04 16:12:49 -07:00
|
|
|
(kernel-arguments (append '("console=ttyS0") %default-kernel-arguments))
|
2023-12-02 00:43:26 -07:00
|
|
|
(bootloader (bootloader-configuration
|
|
|
|
(bootloader grub-minimal-bootloader)
|
|
|
|
(targets '("/dev/nvme1n1"))))
|
2023-12-03 18:49:19 -07:00
|
|
|
(swap-devices (list (swap-space (target (file-system-label "guix-swap")))))
|
2023-12-02 00:43:26 -07:00
|
|
|
(file-systems (cons (file-system
|
|
|
|
(device (file-system-label "guix-data"))
|
|
|
|
(mount-point "/")
|
|
|
|
(type "ext4")) %base-file-systems))
|
|
|
|
(sudoers-file (plain-file "sudoers"
|
|
|
|
(string-join (list "Defaults mail_badpass"
|
|
|
|
"root ALL=(ALL:ALL) ALL"
|
2023-12-02 20:02:34 -07:00
|
|
|
"%aws ALL=(ALL:ALL) ALL" "")
|
2023-12-02 00:43:26 -07:00
|
|
|
"\n")))
|
|
|
|
|
2023-12-03 18:58:44 -07:00
|
|
|
(packages (cons* neovim git %base-packages))
|
2023-12-02 00:43:26 -07:00
|
|
|
|
|
|
|
(services
|
|
|
|
(cons* (service dhcp-client-service-type)
|
2023-12-02 14:49:40 -07:00
|
|
|
(service aws-service-type)
|
2023-12-02 00:43:26 -07:00
|
|
|
(service openssh-service-type
|
2023-12-02 14:49:40 -07:00
|
|
|
(openssh-configuration (port-number 22)
|
|
|
|
(password-authentication? #f)))
|
|
|
|
%base-services)))
|
2023-12-02 00:43:26 -07:00
|
|
|
|