From 52aaec8067636159a4f5ccee067159d9fc7985bd Mon Sep 17 00:00:00 2001 From: Daniel Ziltener Date: Tue, 5 Nov 2024 08:56:26 +0100 Subject: [PATCH] . --- Makefile | 2 +- configuration.nix | 8 ++++++++ flake.lock | 12 ++++++------ 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 62c1a16..3e08889 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,7 @@ install-chicken-doc: install: touch ~/.vw-session-key touch ~/.config/hypr/monitors.conf - sudo nix-collect-garbage --delete-old + #sudo nix-collect-garbage --delete-old sudo env NIXPKGS_ALLOW_BROKEN=1 nixos-rebuild switch --recreate-lock-file --flake .#ziltis-desktop --impure --show-trace # end diff --git a/configuration.nix b/configuration.nix index e587f3e..6bd4e31 100644 --- a/configuration.nix +++ b/configuration.nix @@ -331,6 +331,14 @@ randomizedDelaySec = "45min"; }; + nix.settings.auto-optimise-store = true; + + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 7d"; + }; + # Copy the NixOS configuration file and link it from the resulting system # (/run/current-system/configuration.nix). This is useful in case you # accidentally delete configuration.nix. diff --git a/flake.lock b/flake.lock index b6f4b0c..b62649a 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1730016908, - "narHash": "sha256-bFCxJco7d8IgmjfNExNz9knP8wvwbXU4s/d53KOK6U0=", + "lastModified": 1730633670, + "narHash": "sha256-ZFJqIXpvVKvzOVFKWNRDyIyAo+GYdmEPaYi1bZB6uf0=", "owner": "nix-community", "repo": "home-manager", - "rev": "e83414058edd339148dc142a8437edb9450574c8", + "rev": "8f6ca7855d409aeebe2a582c6fd6b6a8d0bf5661", "type": "github" }, "original": { @@ -39,11 +39,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1730200266, - "narHash": "sha256-l253w0XMT8nWHGXuXqyiIC/bMvh1VRszGXgdpQlfhvU=", + "lastModified": 1730531603, + "narHash": "sha256-Dqg6si5CqIzm87sp57j5nTaeBbWhHFaVyG7V6L8k3lY=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "807e9154dcb16384b1b765ebe9cd2bba2ac287fd", + "rev": "7ffd9ae656aec493492b44d0ddfb28e79a1ea25d", "type": "github" }, "original": {