1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-31 04:04:45 +00:00

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.
This commit is contained in:
‮rekcäH nitraM‮ 2025-03-24 21:32:40 +01:00
parent ebb88c3428
commit 8246e9dc79

View file

@ -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}
'';