From f58fa7a8500bb80b4cc122bcfe57ed4fbb2fcbf6 Mon Sep 17 00:00:00 2001 From: Andre Date: Wed, 17 Apr 2024 15:29:31 -0400 Subject: [PATCH] Change Nix GC period to last 10 builds --- flake.lock | 18 +++++++++--------- modules/base/system.nix | 5 ++++- modules/ui/gnome.nix | 7 ++++--- 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/flake.lock b/flake.lock index d1f8f36..4ba8c9e 100644 --- a/flake.lock +++ b/flake.lock @@ -117,11 +117,11 @@ ] }, "locked": { - "lastModified": 1713166971, - "narHash": "sha256-t0P/rKlsE5l1O3O2LYtAelLzp7PeoPCSzsIietQ1hSM=", + "lastModified": 1713294767, + "narHash": "sha256-LmaabaQZdx52MPGKPRt9Opoc9Gd9RbwvCdysUUYQoXI=", "owner": "nix-community", "repo": "home-manager", - "rev": "1c43dcfac48a2d622797f7ab741670fdbcf8f609", + "rev": "fa8c16e2452bf092ac76f09ee1fb1e9f7d0796e7", "type": "github" }, "original": { @@ -174,11 +174,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1712909959, - "narHash": "sha256-7/5ubuwdEbQ7Z+Vqd4u0mM5L2VMNDsBh54visp27CtQ=", + "lastModified": 1713377320, + "narHash": "sha256-OrBm62B+X9jylr6cPgKc+5OSgF2PRW9IY0ARCOtURMY=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "f58b25254be441cd2a9b4b444ed83f1e51244f1f", + "rev": "f2d364de6589f7a029624983593eafc3c4dac726", "type": "github" }, "original": { @@ -222,11 +222,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1712963716, - "narHash": "sha256-WKm9CvgCldeIVvRz87iOMi8CFVB1apJlkUT4GGvA0iM=", + "lastModified": 1713248628, + "narHash": "sha256-NLznXB5AOnniUtZsyy/aPWOk8ussTuePp2acb9U+ISA=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "cfd6b5fc90b15709b780a5a1619695a88505a176", + "rev": "5672bc9dbf9d88246ddab5ac454e82318d094bb8", "type": "github" }, "original": { diff --git a/modules/base/system.nix b/modules/base/system.nix index b25779d..2b2766f 100644 --- a/modules/base/system.nix +++ b/modules/base/system.nix @@ -69,6 +69,9 @@ with lib; # Configure nix nix = { + # Use the latest and greatest Nix + package = pkgs.nixVersions.unstable; + # Enables Flakes settings.experimental-features = [ "nix-command" "flakes" ]; @@ -79,7 +82,7 @@ with lib; gc = { automatic = true; dates = "daily"; - options = "--delete-older-than 14d"; + options = "--delete-older-than +10"; # Keep only the last ten generations }; # Configure NixOS to use the same software channel as Flakes diff --git a/modules/ui/gnome.nix b/modules/ui/gnome.nix index f3f5021..a303495 100644 --- a/modules/ui/gnome.nix +++ b/modules/ui/gnome.nix @@ -94,9 +94,10 @@ with lib; # Gnome tweak tools gnome.gnome-tweaks # Gnome extensions - gnomeExtensions.appindicator - gnomeExtensions.dash-to-panel - gnomeExtensions.forge + # FIXME: Disable temporarily due to broken version in Nixpkgs + #gnomeExtensions.appindicator + #gnomeExtensions.dash-to-panel + #gnomeExtensions.forge # Themeing gnome.gnome-themes-extra papirus-icon-theme