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

linux-builder: check for nix.enable

(cherry picked from commit 7cca8f95f7)
This commit is contained in:
Emily 2025-02-10 19:25:18 +00:00
parent be5f5c546f
commit f49eef1b2c

View file

@ -160,6 +160,13 @@ in
};
config = mkIf cfg.enable {
assertions = [
{
assertion = config.nix.enable;
message = ''`nix.linux-builder.enable` requires `nix.enable`'';
}
];
system.activationScripts.preActivation.text = ''
mkdir -p ${cfg.workingDirectory}
'';