From 855fcc324a5e83d3abced135d4b6ecad02cc022a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 13 Sep 2019 18:58:40 +0200 Subject: Add option system.configurationRevision to record revision of top-level flake --- nixos/modules/misc/version.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos/modules/misc/version.nix b/nixos/modules/misc/version.nix index 8a85035ceb7..8dbbbe6761c 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 = { -- cgit 1.4.1