20 lines
314 B
Nix
20 lines
314 B
Nix
{ lib, config, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.os.shell.nh;
|
|
in
|
|
{
|
|
options.os.shell.nh = {
|
|
enable = mkEnableOption "System nh service";
|
|
};
|
|
config = mkIf cfg.enable {
|
|
|
|
programs.nh = {
|
|
enable = true;
|
|
clean.enable = true;
|
|
clean.extraArgs = "--keep-since 2d --keep 3";
|
|
};
|
|
|
|
};
|
|
}
|