diff options
| author | Fuwn <[email protected]> | 2024-09-25 02:52:41 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-25 02:52:41 -0700 |
| commit | cc2acd05360ff08cabc533b6a6caf3971a09be36 (patch) | |
| tree | 40a533163540cb59e51f2b08873a845115995ad8 | |
| parent | networking: mirror september over tor (diff) | |
| download | nixos-config-cc2acd05360ff08cabc533b6a6caf3971a09be36.tar.xz nixos-config-cc2acd05360ff08cabc533b6a6caf3971a09be36.zip | |
nix: clean with nh
| -rw-r--r-- | modules/core/nix/default.nix | 8 | ||||
| -rw-r--r-- | modules/core/nix/extended.nix | 2 | ||||
| -rw-r--r-- | modules/core/nix/nh.nix | 9 |
3 files changed, 10 insertions, 9 deletions
diff --git a/modules/core/nix/default.nix b/modules/core/nix/default.nix index 6b605ee..f90bc8b 100644 --- a/modules/core/nix/default.nix +++ b/modules/core/nix/default.nix @@ -2,15 +2,17 @@ inputs, pkgs, lib, - config, ... }: { - imports = [ ./extended.nix ]; + imports = [ + ./extended.nix + ./nh.nix + ]; + nixpkgs.config.allowUnfree = true; nix = { - gc.automatic = true; optimise.automatic = true; registry.nixpkgs.flake = inputs.nixpkgs; package = pkgs.nixVersions.git; diff --git a/modules/core/nix/extended.nix b/modules/core/nix/extended.nix index 4e924cd..86168f2 100644 --- a/modules/core/nix/extended.nix +++ b/modules/core/nix/extended.nix @@ -5,8 +5,6 @@ ... }: { - imports = [ ./nh.nix ]; - config = lib.mkIf config.modules.nix.extend { nixpkgs.config.cudaSupport = true; programs.nix-index-database.comma.enable = true; diff --git a/modules/core/nix/nh.nix b/modules/core/nix/nh.nix index 5b54192..6ea21e7 100644 --- a/modules/core/nix/nh.nix +++ b/modules/core/nix/nh.nix @@ -1,9 +1,10 @@ -{ lib, config, ... }: { - config = lib.mkIf config.modules.nix.extend { - programs.nh = { + programs.nh = { + enable = true; + + clean = { enable = true; - clean.enable = false; + dates = "daily"; }; }; } |