diff --git a/hosts/vali/mars/configuration.nix b/hosts/vali/mars/configuration.nix index dd2060e..cc5d28f 100644 --- a/hosts/vali/mars/configuration.nix +++ b/hosts/vali/mars/configuration.nix @@ -14,15 +14,6 @@ # reduce file size used & automatic garbage collector auto-optimise-store = true; }; - gc = { - automatic = true; - options = "--delete-older-than 14d"; - }; - # required for nix-direnv to work and have environments not garbage collected - extraOptions = '' - keep-outputs = true - keep-derivations = true - ''; }; security.sudo.package = pkgs.sudo.override { withInsults = true; }; security.polkit.enable = true; @@ -55,6 +46,7 @@ emacs.enable = true; fish.enable = true; stylix.enable = true; + nh.enable = true; # spicetify.enable = true; anyrun.enable = true; }; diff --git a/modules/cli/default.nix b/modules/cli/default.nix index 51d1163..e3bed3c 100644 --- a/modules/cli/default.nix +++ b/modules/cli/default.nix @@ -2,5 +2,6 @@ _: { imports = [ ./neovim.nix ./fish.nix + ./nh.nix ]; } diff --git a/modules/cli/nh.nix b/modules/cli/nh.nix new file mode 100644 index 0000000..5eae12d --- /dev/null +++ b/modules/cli/nh.nix @@ -0,0 +1,16 @@ +{ pkgs, lib, config, callPackage, ... }: +with lib; let + username = config.modules.other.system.username; + cfg = config.modules.programs.nh; +in { + options.modules.programs.nh.enable = mkEnableOption "nh"; + + config = mkIf cfg.enable { + programs.nh = { + enable = true; + clean.enable = true; + clean.extraArgs = "--keep-since 4d --keep 3"; + flake = "/home/vali/repos/nichts"; + }; + }; +}