From 29617c2e1fdf6cfe5f0076340a0e1b97480b7369 Mon Sep 17 00:00:00 2001 From: Marek Paśnikowski Date: Sat, 11 Feb 2023 21:46:09 +0100 Subject: Configure the Guix Daemon to keep all live derivations and outputs --- system-configuration.scm | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'system-configuration.scm') diff --git a/system-configuration.scm b/system-configuration.scm index 57394ac..4dff289 100644 --- a/system-configuration.scm +++ b/system-configuration.scm @@ -41,6 +41,17 @@ %base-packages)) (services (append + (append + (list + (udev-rules-service 'trezord trezord-udev-rules)) + (list + (service + guix-service-type + (guix-configuration + (extra-options + (list + "--gc-keep-derivations=yes" + "--gc-keep-outputs=yes")))))) (list (service openssh-service-type) (service @@ -69,15 +80,15 @@ (service tor-service-type (tor-configuration - (control-socket? #t))) - (udev-rules-service 'trezord trezord-udev-rules)) + (control-socket? #t)))) (modify-services %desktop-services (elogind-service-type configuration => (elogind-configuration (inherit configuration) - (handle-lid-switch 'ignore)))))) + (handle-lid-switch 'ignore))) + (delete guix-service-type)))) (bootloader (bootloader-configuration (bootloader grub-bootloader) (targets '("/dev/sda")) (keyboard-layout keyboard-layout))) -- cgit v1.2.3