nixos/modules/shell/nix/nh.nix
2024-08-08 21:07:25 +04:00

19 lines
412 B
Nix

{ inputs, options, config, lib, pkgs, ...}:
# funny nix cli
let cfg = config.modules.shell.nix.nh;
in
{
options.modules.shell.nix.nh = {
enable = lib.mkEnableOption false;
};
config = lib.mkIf cfg.enable {
programs.nh = {
enable = true;
# TODO try this later
# clean.enable = true;
# clean.extraArgs = "--keep-since 4d --keep 3";
flake = "/etc/nixos";
};
};
}