diff options
author | Alex Auvolat <alex@adnab.me> | 2023-07-20 13:50:17 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-07-20 13:50:17 +0200 |
commit | c865834d3bace7b5b66cdb4618c776e5e7233586 (patch) | |
tree | f8c1dfb7ab31e347ccc74aa79a887df4ab22a712 | |
parent | 958063f086e1bfd7d75208dae9339acec33b1942 (diff) | |
download | user-config-c865834d3bace7b5b66cdb4618c776e5e7233586.tar.gz user-config-c865834d3bace7b5b66cdb4618c776e5e7233586.zip |
disable nix gc on kusanagi
-rw-r--r-- | nixos/common.nix | 2 | ||||
-rw-r--r-- | nixos/kusanagi.nix | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/nixos/common.nix b/nixos/common.nix index a3397c1..25b87eb 100644 --- a/nixos/common.nix +++ b/nixos/common.nix @@ -103,7 +103,7 @@ in # -------------------- packages --------------------- nixpkgs.config.allowUnfree = true; - nix.gc.automatic = true; + nix.gc.automatic = pkgs.lib.mkDefault true; nix.gc.options = "--delete-older-than 30d"; nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.substituters = [ "https://nix.web.deuxfleurs.fr" ]; diff --git a/nixos/kusanagi.nix b/nixos/kusanagi.nix index cf5450c..1b3f612 100644 --- a/nixos/kusanagi.nix +++ b/nixos/kusanagi.nix @@ -101,6 +101,10 @@ in }; home-manager.users.lx = import ../nixpkgs/kusanagi.nix { inherit pkgs; }; + # ---- disable nix gc ---- + + nix.gc.automatic = false; + # ---- nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; |