From c865834d3bace7b5b66cdb4618c776e5e7233586 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 20 Jul 2023 13:50:17 +0200 Subject: disable nix gc on kusanagi --- nixos/common.nix | 2 +- nixos/kusanagi.nix | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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"; -- cgit v1.2.3