nixos/label: no prepend '-' if there are no tags

volth eef641aa 8cd9194a

Changed files
+2 -2
nixos
modules
misc
+2 -2
nixos/modules/misc/label.nix
···
# This is set here rather than up there so that changing it would
# not rebuild the manual
system.nixos.label = mkDefault (maybeEnv "NIXOS_LABEL"
-
(concatStringsSep "-" (sort (x: y: x < y) cfg.tags)
-
+ "-" + maybeEnv "NIXOS_LABEL_VERSION" cfg.version));
+
(concatStringsSep "-" ((sort (x: y: x < y) cfg.tags)
+
++ [ (maybeEnv "NIXOS_LABEL_VERSION" cfg.version) ])));
};
}