mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-31 04:04:45 +00:00
Merge 5417dfd58c
into 53d0f0ed11
This commit is contained in:
commit
93dfa9fd73
1 changed files with 7 additions and 0 deletions
|
@ -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}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue