Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (use-modules (gnu)
- (guix modules))
- (use-service-modules networking
- ssh)
- (use-package-modules admin
- certs
- package-management
- ssh
- tls)
- (operating-system)
- (host-name “45.56.85.14“)
- (timezone "America/New_York")
- (locale "en_US.UTF-8")
- ;; This goofy code will generate the grub.cfg
- ;; without installing the grub bootloader on disk.
- (bootloader (bootloader-configuration
- (bootloader
- (bootloader
- (inherit grub-bootloader)
- (installer #~(const #t))))))
- (file-systems (cons (file-system
- (device "/dev/sda")
- (mount-point "/")
- (type "ext4"))
- %base-file-systems))
- (initrd-modules (cons "virtio_scsi" ; Needed to find the disk
- %base-initrd-modules))
- (users (cons (user-account
- (name "root")
- (group "users")
- ;; Adding the account to the "wheel" group
- ;; makes it a sudoer.
- (supplementary-groups '("wheel"))
- (home-directory "/home/root"))
- %base-user-accounts))
- (packages (cons* nss-certs ;for HTTPS access
- openssh-sans-x
- %base-packages))
- (services (cons*
- (service dhcp-client-service-type)
- (service openssh-service-type
- (openssh-configuration
- (openssh openssh-sans-x)
- (password-authentication? #f)
- (authorized-keys
- `(("root" ,(local-file "root_rsa.pub"))
- ;; Is this a good idea? Well if you don't add it
- ;; you have to manually set your user's password
- ;; via the glish console...
- ("root" ,(local-file "root_rsa.pub"))))))
- %base-services)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement