the-nx.com-initial-config.scm 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. (use-modules (gnu)
  2. (guix modules))
  3. (use-service-modules networking
  4. ssh)
  5. (use-package-modules admin
  6. certs
  7. package-management
  8. ssh
  9. tls)
  10. (operating-system
  11. (host-name "aquinas")
  12. (timezone "America/Chicago")
  13. (locale "en_US.UTF-8")
  14. ;; This goofy code will generate the grub.cfg
  15. ;; without installing the grub bootloader on disk.
  16. (bootloader (bootloader-configuration
  17. (bootloader
  18. (bootloader
  19. (inherit grub-bootloader)
  20. (installer #~(const #true))))))
  21. (file-systems (cons (file-system
  22. (device "/dev/sda")
  23. (mount-point "/")
  24. (type "ext4"))
  25. %base-file-systems))
  26. (swap-devices (list (swap-space
  27. (target "/dev/sdb"))))
  28. (initrd-modules (cons "virtio_scsi" ; Needed to find the disk
  29. %base-initrd-modules))
  30. (users (cons (user-account
  31. (name "joshua")
  32. (group "users")
  33. ;; Adding the account to the "wheel" group
  34. ;; makes it a sudoer.
  35. (supplementary-groups '("wheel"))
  36. (home-directory "/home/joshua"))
  37. %base-user-accounts))
  38. (packages (cons* nss-certs ;for HTTPS access
  39. openssh-sans-x
  40. %base-packages))
  41. (services (cons*
  42. (service dhcp-client-service-type)
  43. (service openssh-service-type
  44. (openssh-configuration
  45. (openssh openssh-sans-x)
  46. (password-authentication? #false)
  47. (authorized-keys
  48. `(("joshua" ,(local-file "id_rsa.pub"))
  49. ("root" ,(local-file "id_rsa.pub"))))))
  50. %base-services)))