From 9d5c85fdb97357cb856b0dd4176f882d1181ee11 Mon Sep 17 00:00:00 2001 From: Andre Date: Mon, 9 Sep 2024 20:00:14 -0400 Subject: [PATCH] Nix: optimise store on each build --- flake.lock | 12 ++++++------ modules/system/nix.nix | 7 ++----- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/flake.lock b/flake.lock index 5b0b277..95a25fb 100644 --- a/flake.lock +++ b/flake.lock @@ -233,11 +233,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1725716377, - "narHash": "sha256-7NzW9O/cAw7iWzRfh7Oo/SuSudL4a1YTKS6yoh3tMck=", + "lastModified": 1725885300, + "narHash": "sha256-5RLEnou1/GJQl+Wd+Bxaj7QY7FFQ9wjnFq1VNEaxTmc=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "04a1cda0c1725094a4db703cccbb956b7558f5a6", + "rev": "166dee4f88a7e3ba1b7a243edb1aca822f00680e", "type": "github" }, "original": { @@ -297,11 +297,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1725693463, - "narHash": "sha256-ZPzhebbWBOr0zRWW10FfqfbJlan3G96/h3uqhiFqmwg=", + "lastModified": 1725826545, + "narHash": "sha256-L64N1rpLlXdc94H+F6scnrbuEu+utC03cDDVvvJGOME=", "owner": "nixos", "repo": "nixpkgs", - "rev": "68e7dce0a6532e876980764167ad158174402c6f", + "rev": "f4c846aee8e1e29062aa8514d5e0ab270f4ec2f9", "type": "github" }, "original": { diff --git a/modules/system/nix.nix b/modules/system/nix.nix index 6f3f541..c79142c 100644 --- a/modules/system/nix.nix +++ b/modules/system/nix.nix @@ -46,11 +46,8 @@ in [ aires.name ] ++ lib.optionals (config.aux.system.users.gremlin.enable) [ gremlin.name ]; }; - # Enable periodic nix store optimization - optimise = { - automatic = true; - dates = [ "daily" ]; - }; + # Optimize the Nix store on each build + settings.auto-optimise-store = true; # Enable garbage collection gc = { automatic = true;