diff --git a/modules/nix/linux-builder.nix b/modules/nix/linux-builder.nix index 36a4131..7566303 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 = '' + # Migrate if using the old working directory + if [ -e /var/lib/darwin-builder ] && [ ! -e ${cfg.workingDirectory} ]; then + mv /var/lib/darwin-builder ${cfg.workingDirectory} + fi + mkdir -p ${cfg.workingDirectory} '';