Correctly defined ssh server and nonguix substitutes

This commit is contained in:
Adrien Bourmault 2023-09-10 15:52:08 +02:00
parent e4afbe625f
commit a304055fa0
No known key found for this signature in database
GPG Key ID: 6EB408FE0ACEC664
1 changed files with 20 additions and 1 deletions

View File

@ -109,6 +109,12 @@ SUBSYSTEM==\"usb_device\", GROUP=\"spice\", MODE=\"0660\"
(modify-services (append (modify-services (append
(list (list
(service gnome-desktop-service-type) (service gnome-desktop-service-type)
(service openssh-service-type
(openssh-configuration
(x11-forwarding? #t)
(permit-root-login 'prohibit-password)
(authorized-keys
`(("neox" ,(local-file "/home/neox/.ssh/id_rsa.pub"))))))
(service cups-service-type (service cups-service-type
(cups-configuration (cups-configuration
(web-interface? #t) (web-interface? #t)
@ -135,7 +141,20 @@ SUBSYSTEM==\"usb_device\", GROUP=\"spice\", MODE=\"0660\"
(guix-service-type config => (guix-configuration (guix-service-type config => (guix-configuration
(inherit config) (inherit config)
(extra-options '("--cores=10")))))) (extra-options '("--cores=10"))
(substitute-urls
(append (list "https://substitutes.nonguix.org")
%default-substitute-urls))
(authorized-keys
(append
(list
(plain-file "non-guix.pub"
(string-append
"(public-key"
" (ecc "
" (curve Ed25519)"
" (q #C1FD53E5D4CE971933EC50C9F307AE2171A2D3B52C804642A7A35F84F3A4EA98#)))")))
%default-authorized-guix-keys))))))
(bootloader (bootloader-configuration (bootloader (bootloader-configuration
(bootloader grub-efi-bootloader) (bootloader grub-efi-bootloader)