From 07e467027b29251987a4e09f1532fbbc3040e670 Mon Sep 17 00:00:00 2001 From: Bernardo Magri Date: Sun, 14 Jun 2026 20:53:18 +0100 Subject: [PATCH] feat(nix): silence the "Git tree is dirty" warning on rebuilds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The downstream flake at ~/.nomarchy is a live working tree by design — nomarchy-theme-sync rewrites theme-state.json on every switch — so Nix's dirty-tree warning fired on every sys-update/home-update and was just noise. Default nix.settings.warn-dirty to false (mkDefault, overridable). Co-Authored-By: Claude Opus 4.8 --- modules/nixos/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/nixos/default.nix b/modules/nixos/default.nix index ac4ab14..43b6f5b 100644 --- a/modules/nixos/default.nix +++ b/modules/nixos/default.nix @@ -291,6 +291,11 @@ in settings = { experimental-features = [ "nix-command" "flakes" ]; auto-optimise-store = lib.mkDefault true; + # The downstream flake (~/.nomarchy) is meant to be a live working + # tree: nomarchy-theme-sync rewrites theme-state.json on every + # switch (and you needn't commit each tweak), so the "Git tree is + # dirty" warning fires on every rebuild and is pure noise here. + warn-dirty = lib.mkDefault false; }; gc = { automatic = lib.mkDefault true;