diff options
-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"; |