linux-builder: check for nix.enable

This commit is contained in:
Emily 2025-02-10 19:25:18 +00:00
parent 0176a5082b
commit 7cca8f95f7

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