From 7d42965a0a1841af59810edf9089c7d09b421120 Mon Sep 17 00:00:00 2001 From: Stefan Kempinger Date: Wed, 23 Jul 2025 15:42:00 +0200 Subject: [PATCH] Add system.configurationRevision to configuration.nix and tidy flake.nix --- configuration.nix | 2 ++ flake.nix | 1 + 2 files changed, 3 insertions(+) diff --git a/configuration.nix b/configuration.nix index 2fb1753..5cd98b7 100644 --- a/configuration.nix +++ b/configuration.nix @@ -112,6 +112,8 @@ # # For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion . + + system.configurationRevision = lib.mkIf (specialArgs.inputs.self ? rev) specialArgs.inputs.self.rev; system.stateVersion = "25.05"; # Did you read the comment? } diff --git a/flake.nix b/flake.nix index 38ad326..363795c 100644 --- a/flake.nix +++ b/flake.nix @@ -17,6 +17,7 @@ # pass flake inputs to individual module files specialArgs = { inherit inputs; }; } // args)); + in { packages."${system}".default =