1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-31 04:04:45 +00:00
This commit is contained in:
Ivan Kovnatsky 2025-03-29 15:35:56 +00:00 committed by GitHub
commit 93dfa9fd73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,6 +29,12 @@ in {
default = "/var/log/netdata";
description = "Log directory for Netdata";
};
cacheDir = mkOption {
type = types.path;
default = "/var/cache/netdata";
description = "Cache directory for Netdata";
};
};
};
@ -50,6 +56,7 @@ in {
system.activationScripts.preActivation.text = ''
mkdir -p ${cfg.workDir}
mkdir -p ${cfg.cacheDir}
'';
};
}