From 9612258118c041841ae7f4701dae3a30306cbf46 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sun, 25 Apr 2021 11:40:30 +0000 Subject: [PATCH] flake: do not throw on dirty tree This is mostly inconvenient, I have enough discipline not to need it anymore. --- flake.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index e98881e..09366c7 100644 --- a/flake.nix +++ b/flake.nix @@ -19,10 +19,7 @@ defaultModules = [ ({ ... }: { # Let 'nixos-version --json' know about the Git revision - system.configurationRevision = - if self ? rev - then self.rev - else throw "Refusing to build from a dirty Git tree!"; + system.configurationRevision = self.rev or "dirty"; }) { nixpkgs.overlays = (lib.attrValues self.overlays) ++ [