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:
parent
ebb88c3428
commit
8246e9dc79
1 changed files with 6 additions and 1 deletions
|
@ -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}
|
||||
'';
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue