From e610e3065848a29a4a5d720c72e6e2c85430a0c3 Mon Sep 17 00:00:00 2001 From: Oliver Davies <oliver@oliverdavies.dev> Date: Mon, 10 Mar 2025 20:44:27 +0000 Subject: [PATCH] Don't automatically run gc or optimise the Nix ...store --- nix/hosts/PW05CH3L/configuration.nix | 21 --------------------- nix/hosts/common/default.nix | 13 +++++++++++++ nix/hosts/lemp11/configuration.nix | 19 ------------------- nix/hosts/t490/configuration.nix | 21 --------------------- 4 files changed, 13 insertions(+), 61 deletions(-) diff --git a/nix/hosts/PW05CH3L/configuration.nix b/nix/hosts/PW05CH3L/configuration.nix index 48ed8a4e..af63b0f2 100644 --- a/nix/hosts/PW05CH3L/configuration.nix +++ b/nix/hosts/PW05CH3L/configuration.nix @@ -27,25 +27,4 @@ services.syncthing.enable = true; nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ]; - - nix = { - gc = { - automatic = true; - dates = "daily"; - options = "--delete-older-than 7d"; - }; - - optimise.automatic = true; - - settings = { - auto-optimise-store = true; - - experimental-features = [ - "nix-command" - "flakes" - ]; - - warn-dirty = false; - }; - }; } diff --git a/nix/hosts/common/default.nix b/nix/hosts/common/default.nix index bb8128cc..b0502b27 100644 --- a/nix/hosts/common/default.nix +++ b/nix/hosts/common/default.nix @@ -20,6 +20,19 @@ ./programs.nix ]; + nix = { + settings = { + auto-optimise-store = true; + + experimental-features = [ + "nix-command" + "flakes" + ]; + + warn-dirty = false; + }; + }; + users.defaultUserShell = pkgs.zsh; environment.systemPackages = diff --git a/nix/hosts/lemp11/configuration.nix b/nix/hosts/lemp11/configuration.nix index 8ae4bdb2..616b8a19 100644 --- a/nix/hosts/lemp11/configuration.nix +++ b/nix/hosts/lemp11/configuration.nix @@ -48,23 +48,4 @@ }; zramSwap.enable = true; - - nix = { - gc = { - automatic = true; - dates = "daily"; - options = "--delete-older-than 7d"; - }; - - optimise.automatic = true; - - settings = { - auto-optimise-store = true; - experimental-features = [ - "nix-command" - "flakes" - ]; - warn-dirty = false; - }; - }; } diff --git a/nix/hosts/t490/configuration.nix b/nix/hosts/t490/configuration.nix index 81636500..c063abb6 100644 --- a/nix/hosts/t490/configuration.nix +++ b/nix/hosts/t490/configuration.nix @@ -64,27 +64,6 @@ zramSwap.enable = true; - nix = { - gc = { - automatic = true; - dates = "daily"; - options = "--delete-older-than 7d"; - }; - - optimise.automatic = true; - - settings = { - auto-optimise-store = true; - - experimental-features = [ - "nix-command" - "flakes" - ]; - - warn-dirty = false; - }; - }; - networking.hosts = { "192.168.1.116" = [ "nixedo" ]; };