diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-09-13 18:58:40 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-02-05 23:15:18 +0100 |
commit | 855fcc324a5e83d3abced135d4b6ecad02cc022a (patch) | |
tree | 43009fdf8359899d07c75f9e7ec4390859f7fb92 /nixos/modules/misc | |
parent | b91803bf135ce583a3115e5b7e4feb0333d96af1 (diff) |
Add option system.configurationRevision to record revision of top-level flake
Diffstat (limited to 'nixos/modules/misc')
-rw-r--r-- | nixos/modules/misc/version.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/modules/misc/version.nix b/nixos/modules/misc/version.nix index 8a85035ceb7c..8dbbbe6761c4 100644 --- a/nixos/modules/misc/version.nix +++ b/nixos/modules/misc/version.nix @@ -84,6 +84,12 @@ in description = "Default NixOS channel to which the root user is subscribed."; }; + configurationRevision = mkOption { + type = types.nullOr types.str; + default = null; + description = "The Git revision of the top-level flake from which this configuration was built."; + }; + }; config = { |