flake: revert from self.dirtyRev to self.rev

This commit is contained in:
Alexander Tomokhov 2023-10-09 02:23:45 +04:00
parent 9370d17b82
commit 11567d4db9

View file

@ -22,8 +22,7 @@
}: }:
let let
system = "x86_64-linux"; system = "x86_64-linux";
# (only "dirty", because userdata.json and others are overriden) cfgShortRev = builtins.substring 0 7 self.rev;
cfgShortRev = builtins.substring 0 7 self.dirtyRev;
nixosLabel = config: nixosLabel = config:
"${config.system.nixos.release}.${cfgShortRev}.${nixpkgs.shortRev}"; "${config.system.nixos.release}.${cfgShortRev}.${nixpkgs.shortRev}";
userdata = builtins.fromJSON (builtins.readFile userdata-json); userdata = builtins.fromJSON (builtins.readFile userdata-json);
@ -44,7 +43,7 @@
({ config, ... }: { ({ config, ... }: {
system.nixos.label = nixosLabel config; system.nixos.label = nixosLabel config;
system.nixos.version = nixosLabel config; system.nixos.version = nixosLabel config;
system.configurationRevision = self.dirtyRev; system.configurationRevision = self.rev;
}) })
]; ];
}; };