summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-25 02:52:41 -0700
committerFuwn <[email protected]>2024-09-25 02:52:41 -0700
commitcc2acd05360ff08cabc533b6a6caf3971a09be36 (patch)
tree40a533163540cb59e51f2b08873a845115995ad8
parentnetworking: mirror september over tor (diff)
downloadnixos-config-cc2acd05360ff08cabc533b6a6caf3971a09be36.tar.xz
nixos-config-cc2acd05360ff08cabc533b6a6caf3971a09be36.zip
nix: clean with nh
-rw-r--r--modules/core/nix/default.nix8
-rw-r--r--modules/core/nix/extended.nix2
-rw-r--r--modules/core/nix/nh.nix9
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";
};
};
}