fix: fix dirty label

This commit is contained in:
Julien Malka 2024-07-04 21:52:10 +02:00
parent 6e8d03a4f4
commit 2bb3f909ac
Signed by: Luj
GPG key ID: 6FC74C847011FD83

View file

@ -68,7 +68,12 @@
"/persistent/etc/ssh/ssh_host_ed25519_key"
];
system.nixos.label = "${config.system.nixos.release}-${(builtins.fetchGit ../.).dirtyShortRev}";
system.nixos.label = "${config.system.nixos.release}-${
let
repo = builtins.fetchGit ../.;
in
repo.dirtyShortRev or repo.shortRev
}";
security.pki.certificates = [
''