aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2023-03-25 21:43:18 +0100
committerKarel Kočí <cynerd@email.cz>2023-03-25 21:43:18 +0100
commitfe23a05bcee5be0fd9a3ae1b943297311e7ff89e (patch)
tree78aea21732d1cfb035d5fa1abbd41424c48bd266
parent312b056af6b850ff9527153a27a7a3674c390c65 (diff)
downloadnixos-personal-fe23a05bcee5be0fd9a3ae1b943297311e7ff89e.tar.gz
nixos-personal-fe23a05bcee5be0fd9a3ae1b943297311e7ff89e.tar.bz2
nixos-personal-fe23a05bcee5be0fd9a3ae1b943297311e7ff89e.zip
nixos: include configuration revision in the system
-rw-r--r--nixos/configurations.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/configurations.nix b/nixos/configurations.nix
index b96b0f6..31338e5 100644
--- a/nixos/configurations.nix
+++ b/nixos/configurations.nix
@@ -15,6 +15,7 @@ with nixpkgs.lib; let
self.overlays.default
sterm.overlay
];
+ system.configurationRevision = self.rev or "dirty";
}
]
++ (optional (hasAttr "machine-${hostname}" self.nixosModules) self.nixosModules."machine-${hostname}");