Files
Nixos/modules/system/options/apps/nh.nix
T

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