aboutsummaryrefslogtreecommitdiff
path: root/nixos/profiles
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2026-10-15 07:31:36 +0200
committerMartin Fischer <martin@push-f.com>2026-10-31 08:43:08 +0100
commit4767c534f82a1c19bc6d7d71aa09b88c9d6c6aae (patch)
treed0ddc1c10789b4e95466c899c891ccda08988089 /nixos/profiles
parentb7f3f597a799cf930857d9c3c212ed9d67dedbc2 (diff)
feat(common): set system.configurationRevision
Diffstat (limited to 'nixos/profiles')
-rw-r--r--nixos/profiles/common/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/profiles/common/default.nix b/nixos/profiles/common/default.nix
index d891879..d94db86 100644
--- a/nixos/profiles/common/default.nix
+++ b/nixos/profiles/common/default.nix
@@ -6,4 +6,10 @@
./basics.nix
"${sources.agenix}/modules/age.nix"
];
+
+ system.configurationRevision =
+ let
+ revision = builtins.getEnv "NIXOS_CONFIG_REVISION";
+ in
+ if revision == "" then null else revision;
}