Common: append -iso to the variant id if building an iso
This commit is contained in:
parent
9be3caddbc
commit
83831f6a75
1 changed files with 4 additions and 1 deletions
|
|
@ -178,6 +178,9 @@
|
||||||
stateVersion = "25.05";
|
stateVersion = "25.05";
|
||||||
# Nix on nixos 23.05 does not have dirtyRev
|
# Nix on nixos 23.05 does not have dirtyRev
|
||||||
configurationRevision = flakeSelf.sourceInfo.rev or flakeSelf.sourceInfo.dirtyRev or "dirty";
|
configurationRevision = flakeSelf.sourceInfo.rev or flakeSelf.sourceInfo.dirtyRev or "dirty";
|
||||||
nixos.variant_id = lib.strings.toLower config.networking.hostName;
|
nixos.variant_id = lib.mkDefault (lib.strings.toLower config.networking.hostName);
|
||||||
|
};
|
||||||
|
image.modules.iso = {
|
||||||
|
system.nixos.variant_id = "${lib.strings.toLower config.networking.hostName}-iso";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue