flake: revert from self.dirtyRev to self.rev

flake-to-override
Alexander Tomokhov 2023-10-09 02:23:45 +04:00
parent 9370d17b82
commit 11567d4db9
1 changed files with 2 additions and 3 deletions

View File

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