Common: set configurationRevision to dirty if dirtyRev doesn't exist
This commit is contained in:
parent
c47e8216d5
commit
1138343be8
1 changed files with 2 additions and 1 deletions
|
|
@ -99,7 +99,8 @@
|
||||||
|
|
||||||
system = {
|
system = {
|
||||||
stateVersion = "23.05";
|
stateVersion = "23.05";
|
||||||
configurationRevision = flakeSelf.sourceInfo.rev or flakeSelf.sourceInfo.dirtyRev;
|
# Nix on nixos 23.05 does not have dirtyRev
|
||||||
|
configurationRevision = flakeSelf.sourceInfo.rev or flakeSelf.sourceInfo.dirtyRev or "dirty";
|
||||||
nixos.variant_id = lib.strings.toLower config.networking.hostName;
|
nixos.variant_id = lib.strings.toLower config.networking.hostName;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue