2024-05-15 00:37:31 +02:00
|
|
|
{ lib, config, ... }:
|
2024-05-15 00:14:59 +02:00
|
|
|
with lib;
|
2024-05-15 00:37:31 +02:00
|
|
|
let cfg = config.modules.programs.nh;
|
2024-05-14 20:33:43 +02:00
|
|
|
in {
|
|
|
|
options.modules.programs.nh.enable = mkEnableOption "nh";
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2024-05-15 00:14:59 +02:00
|
|
|
programs.nh = {
|
|
|
|
enable = true;
|
|
|
|
clean.enable = true;
|
|
|
|
clean.extraArgs = "--keep-since 4d --keep 3";
|
|
|
|
flake = "/home/vali/repos/nichts";
|
|
|
|
};
|
2024-05-14 20:33:43 +02:00
|
|
|
};
|
|
|
|
}
|