This commit is contained in:
Malte Tammena 2023-09-10 00:38:18 +02:00
parent bd128d43b0
commit 99e71beded

View file

@ -53,7 +53,7 @@ in {
(builtins.readFile ../secrets/ca.crt)
];
system.nixos.label = (builtins.concatStringsSep "-" (builtins.sort (x: y: x < y) config.system.nixos.tags)) + config.system.nixos.version + "-SHA:${inputs.self.dirtyShortRev}";
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}";
# Use some binary caches
nix.settings = {