From 090954cd94f223cbf9fa4a84b448439ad00571d5 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sun, 3 Nov 2024 21:34:46 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=91=20feat(nix):=20Auto=20gc;=20disabl?= =?UTF-8?q?e=20git=20tree=20dirty=20warning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/default.nix | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/home/default.nix b/home/default.nix index 09a7743..0118d22 100644 --- a/home/default.nix +++ b/home/default.nix @@ -19,11 +19,21 @@ # Tell nix what version it is. nix.package = pkgs.nix; - # Enable flakes. - nix.settings.experimental-features = [ - "nix-command" - "flakes" - ]; + nix = { + # Enable flakes. + settings.experimental-features = [ + "nix-command" + "flakes" + ]; + + # Disable that annoying "git tree is dirty" warning. + extraOptions = '' + warn-dirty = false + ''; + + # Garbage collection. + gc.automatic = true; + }; xdg.configFile."nixpkgs/config.nix".text = # nix ''