summaryrefslogtreecommitdiffstats
path: root/nixos/modules/misc
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/misc')
-rw-r--r--nixos/modules/misc/version.nix6
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 = {