From 8246e9dc7934e02b858a890fbf302c82f4b78685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=AErekc=C3=A4H=20nitraM=E2=80=AE?= Date: Mon, 24 Mar 2025 21:32:40 +0100 Subject: [PATCH] linux-builder: upgrade working directory The working directory was still using an old name of the project, which made it uneccessary hard to understand why that directory was used exactly. --- modules/nix/linux-builder.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/nix/linux-builder.nix b/modules/nix/linux-builder.nix index 36a41310..5b1e1c2e 100644 --- a/modules/nix/linux-builder.nix +++ b/modules/nix/linux-builder.nix @@ -144,7 +144,7 @@ in workingDirectory = mkOption { type = types.str; - default = "/var/lib/darwin-builder"; + default = "/var/lib/linux-builder"; description = '' The working directory of the Linux builder daemon process. ''; @@ -168,6 +168,11 @@ in ]; system.activationScripts.preActivation.text = '' + # upgrade old path + if [ -e /var/lib/darwin-builder ] && [ ! -e ${cfg.workingDirectory} ]; then + mv /var/lib/darwin-builder ${cfg.workingDirectory} + fi + mkdir -p ${cfg.workingDirectory} '';