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

authored by

volth and committed by
GitHub
eef641aa 8cd9194a

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