From 5aa3b0747c3676cc675bd0794da959a82a932d83 Mon Sep 17 00:00:00 2001 From: Marek Paśnikowski Date: Thu, 6 Jun 2024 16:06:05 +0200 Subject: add options to guix daemon to keep derivations and outputs --- suweren/services.scm | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'suweren/services.scm') diff --git a/suweren/services.scm b/suweren/services.scm index be06206..1fc9985 100644 --- a/suweren/services.scm +++ b/suweren/services.scm @@ -9,15 +9,24 @@ #:use-module (services plasma-desktop) #:use-module (upstream services nbfc)) +(define (guix-options configuration-record) + (let ((extra-options (list "--gc-keep-derivations=yes" + "--gc-keep-outputs=yes"))) + (guix-configuration (inherit configuration-record) + (extra-options extra-options)))) + (define-public %distribution-services (let* ((%desktop-services* (modify-services %desktop-services (delete pulseaudio-service-type) - (guix-service-type config + (guix-service-type configuration + => + (guix-options configuration)) + (guix-service-type configuration => - (channels config)) - (guix-service-type config + (channels configuration)) + (guix-service-type configuration => - (nonguix-substitute config)))) + (nonguix-substitute configuration)))) (nbfc-service (service nbfc-service-type (nbfc-configuration (model "Acer Nitro AN515-43"))))) (append %desktop-services* -- cgit v1.2.3