nix-config/modules/nix/base-cli/nh.nix
smayzy c5ef752a66
All checks were successful
nix flake show / show-flake (push) Successful in 35s
clean modules & add power modes
2025-07-24 14:21:53 +02:00

24 lines
431 B
Nix

{ config, lib, ...}:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.nh.enable = mkOption {
type = types.bool;
default = false;
description = "use nh";
};
config = mkIf config.smayzy.nh.enable {
programs.nh = {
enable = true;
clean= {
enable = true;
extraArgs = "--keep 10";
dates = "hourly";
};
flake = "/home/smayzy/nix-config";
};
};
}