Add system.configurationRevision to configuration.nix and tidy flake.nix

This commit is contained in:
Stefan Kempinger 2025-07-23 15:42:00 +02:00
parent c062f35d86
commit 7d42965a0a
2 changed files with 3 additions and 0 deletions

View file

@ -112,6 +112,8 @@
# #
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion . # 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? system.stateVersion = "25.05"; # Did you read the comment?
} }

View file

@ -17,6 +17,7 @@
# pass flake inputs to individual module files # pass flake inputs to individual module files
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
} // args)); } // args));
in { in {
packages."${system}".default = packages."${system}".default =