linode-locke-lamora-initial-config.scm 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. ;; this was the original file that I used to create my remote linode
  2. (use-modules (gnu)
  3. (guix modules))
  4. (use-service-modules networking
  5. ssh)
  6. (use-package-modules admin
  7. certs
  8. package-management
  9. ssh
  10. tls)
  11. (operating-system
  12. (host-name "locke-lamora")
  13. (timezone "America/Chicago")
  14. (locale "en_US.UTF-8")
  15. ;; This goofy code will generate the grub.cfg
  16. ;; without installing the grub bootloader on disk.
  17. (bootloader (bootloader-configuration
  18. (bootloader
  19. (bootloader
  20. (inherit grub-bootloader)
  21. (installer #~(const #t))))))
  22. (file-systems (cons (file-system
  23. (device "/dev/sda")
  24. (mount-point "/")
  25. (type "ext4"))
  26. %base-file-systems))
  27. (swap-devices (list "/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? #f)
  47. (authorized-keys
  48. `(("joshua" ,(local-file "/home/joshua/id_rsa.pub"))
  49. ("root" ,(local-file "/home/joshua/id_rsa.pub"))))))
  50. %base-services)))