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
|
||||
networking.useNetworkd = true;
|
||||
|
||||
system.nixos.label = let
|
||||
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}";
|
||||
system.nixos.label = (builtins.concatStringsSep "-" (builtins.sort (x: y: x < y) config.system.nixos.tags)) + config.system.nixos.version;
|
||||
|
||||
# Use some binary caches
|
||||
nix.settings = {
|
||||
|
|
Loading…
Reference in a new issue