Advertisement
Guest User

Untitled

a guest
Jul 29th, 2020
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1.  
  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.  
  12. (operating-system)
  13. (host-name “45.56.85.14“)
  14. (timezone "America/New_York")
  15. (locale "en_US.UTF-8")
  16. ;; This goofy code will generate the grub.cfg
  17. ;; without installing the grub bootloader on disk.
  18. (bootloader (bootloader-configuration
  19. (bootloader
  20. (bootloader
  21. (inherit grub-bootloader)
  22. (installer #~(const #t))))))
  23. (file-systems (cons (file-system
  24. (device "/dev/sda")
  25. (mount-point "/")
  26. (type "ext4"))
  27. %base-file-systems))
  28.  
  29. (initrd-modules (cons "virtio_scsi" ; Needed to find the disk
  30. %base-initrd-modules))
  31.  
  32. (users (cons (user-account
  33. (name "root")
  34. (group "users")
  35. ;; Adding the account to the "wheel" group
  36. ;; makes it a sudoer.
  37. (supplementary-groups '("wheel"))
  38. (home-directory "/home/root"))
  39. %base-user-accounts))
  40.  
  41. (packages (cons* nss-certs ;for HTTPS access
  42. openssh-sans-x
  43. %base-packages))
  44.  
  45. (services (cons*
  46. (service dhcp-client-service-type)
  47. (service openssh-service-type
  48. (openssh-configuration
  49. (openssh openssh-sans-x)
  50. (password-authentication? #f)
  51. (authorized-keys
  52. `(("root" ,(local-file "root_rsa.pub"))
  53. ;; Is this a good idea? Well if you don't add it
  54. ;; you have to manually set your user's password
  55. ;; via the glish console...
  56. ("root" ,(local-file "root_rsa.pub"))))))
  57. %base-services)))
  58.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement