fix: simplify nixos label generation
This commit is contained in:
parent
39ee2191a3
commit
5bd3386dfa
|
@ -58,13 +58,7 @@ in {
|
||||||
# Use networkd for everything, I guess
|
# Use networkd for everything, I guess
|
||||||
networking.useNetworkd = true;
|
networking.useNetworkd = true;
|
||||||
|
|
||||||
system.nixos.label = let
|
system.nixos.label = (builtins.concatStringsSep "-" (builtins.sort (x: y: x < y) config.system.nixos.tags)) + config.system.nixos.version;
|
||||||
rev =
|
|
||||||
if builtins.hasAttr "dirtyShortRev" inputs.self
|
|
||||||
then inputs.self.dirtyShortRev
|
|
||||||
else inputs.self.shortRev;
|
|
||||||
in
|
|
||||||
(builtins.concatStringsSep "-" (builtins.sort (x: y: x < y) config.system.nixos.tags)) + config.system.nixos.version + "-SHA:${rev}";
|
|
||||||
|
|
||||||
# Use some binary caches
|
# Use some binary caches
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
|
|
Loading…
Reference in a new issue