add support for offloading

This commit is contained in:
Adrien 'neox' Bourmault 2024-12-15 18:41:44 +01:00
parent 18de9f83c1
commit d937151609
No known key found for this signature in database
GPG Key ID: 57BC26A3687116F6
5 changed files with 87 additions and 1 deletions

52
.gitignore vendored Normal file
View File

@ -0,0 +1,52 @@
.pwd.lock
NetworkManager/
asound.conf
bashrc
cups/
dbus-1
environment
fstab
group
hostname
hosts
issue
libvirt/
localtime
login.defs
lvm/
machine-id
mtab
nonguix-key.pub
nsswitch.conf
os-release
pam.d
passwd
polkit-1
printcap
profile
profile.d/
protocols
pulse
resolv.conf
resolv.conf.bak
rottlog
rpc
security
services
shadow
shells
skel
ssl
static
sudoers
sysconfig/
syslog.conf
timezone
udev
*.sec
ssh/ssh_host_*_key
ssh/authorized_keys.d/
guix/acl*
guix/machines.scm
bluetooth
shadow*

View File

@ -64,6 +64,7 @@
(srfi srfi-1)) (srfi srfi-1))
(use-service-modules (use-service-modules
authentication
cups cups
desktop desktop
guix guix
@ -517,7 +518,7 @@ fi"))
"adb" "adb"
"alsa-plugins" "alsa-plugins"
"alsa-utils" "alsa-utils"
"ardour" ;"ardour"
"audacity" "audacity"
"beep" "beep"
"bind:utils" "bind:utils"
@ -588,6 +589,7 @@ fi"))
"iptables" "iptables"
"jack" "jack"
"jp2a" "jp2a"
"jq"
"kcachegrind" "kcachegrind"
"kgraphviewer" "kgraphviewer"
"librecad" "librecad"
@ -718,9 +720,14 @@ fi"))
;; Service de gestion des clés de chiffrement physique ;; Service de gestion des clés de chiffrement physique
(service pcscd-service-type) (service pcscd-service-type)
;; Service lecteur d'empreinte
;(service fprintd-service-type)
;; Service OpenSSH ;; Service OpenSSH
(service openssh-service-type (service openssh-service-type
(openssh-configuration (openssh-configuration
(authorized-keys
`(("neox" ,(local-file "/etc/ssh/ssh_neox_ed25519_key.pub"))))
(x11-forwarding? #t) (x11-forwarding? #t)
(password-authentication? #f) (password-authentication? #f)
(permit-root-login 'prohibit-password))) (permit-root-login 'prohibit-password)))
@ -780,6 +787,22 @@ fi"))
;; Configuration du garbage collector ;; Configuration du garbage collector
(guix-service-type config => (guix-configuration (guix-service-type config => (guix-configuration
(inherit config) (inherit config)
(build-machines
(list
#~(build-machine
(name "10.42.0.1")
(system "x86_64-linux")
(host-key "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPyGPO723z8cE1PHKTbxqQUMalvmYrXeF88hwoS/SuRI root@n-guix-fix")
(user "offload")
(private-key "/etc/ssh/ssh_host_ed25519_key")
(parallel-builds 8)
(speed 16.0))))
(authorize-key? #t)
(authorized-keys
(append
(list
(local-file "/etc/guix/n-guix-fix.pub"))
%default-authorized-guix-keys))
(extra-options '("--gc-keep-derivations=yes" "--gc-keep-output=yes")))) (extra-options '("--gc-keep-derivations=yes" "--gc-keep-output=yes"))))

4
guix/n-guix-fix.pub Normal file
View File

@ -0,0 +1,4 @@
(public-key
(ecc
(curve Ed25519)
(q #8E46170F0B43CC3C0AD67F162CB1707246D18F322C3EA040898FBB15F2A18963#)))

6
guix/signing-key.pub Normal file
View File

@ -0,0 +1,6 @@
(public-key
(ecc
(curve Ed25519)
(q #7F8EB1AE40F138A9DF5F61C57CC4E33F4F1E42244CE71D855806CDE06113A245#)
)
)

View File

@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDZQd7U/DRPK5/qk35dzeG5dpnS/0FesbRrgZTSMHEsv openpgp:0x18D3885F