diff --git a/modules/shell/nix/default.nix b/modules/shell/nix/default.nix index d10ab61c..35a1c998 100644 --- a/modules/shell/nix/default.nix +++ b/modules/shell/nix/default.nix @@ -3,5 +3,6 @@ ./search.nix ./optimization.nix ./switch-to-configuration-ng.nix + ./nh.nix ]; } diff --git a/modules/shell/nix/nh.nix b/modules/shell/nix/nh.nix new file mode 100644 index 00000000..586b1fa9 --- /dev/null +++ b/modules/shell/nix/nh.nix @@ -0,0 +1,18 @@ +{ 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"; + }; + }; +}