summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-04-14 15:46:31 +0200
committerAlan Pearce2024-04-14 15:46:31 +0200
commit8917992ad14aca2250b3e38367d46213534cc93f (patch)
tree2765969ba4c9b054b373182fcec4f6851b45e518
parent1f8592de6efd2f059f422852efcc9c0429f4292f (diff)
downloadnixfiles-8917992ad14aca2250b3e38367d46213534cc93f.tar.lz
nixfiles-8917992ad14aca2250b3e38367d46213534cc93f.tar.zst
nixfiles-8917992ad14aca2250b3e38367d46213534cc93f.zip
base: store nixfiles repo revision in system config
-rw-r--r--system/settings/base.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/system/settings/base.nix b/system/settings/base.nix
index 2fd7be1f..5eee9088 100644
--- a/system/settings/base.nix
+++ b/system/settings/base.nix
@@ -1,8 +1,14 @@
 { config
 , pkgs
 , lib
+, inputs
 , ...
-}: {
+}:
+let
+  inherit (inputs) self;
+in
+{
   boot.loader.timeout = lib.mkDefault 1;
   services.irqbalance.enable = true;
+  system.configurationRevision = toString (self.rev or self.dirtyRev or self.lastModified or "unknown");
 }