mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-22 19:41:30 +00:00
flake: revert from self.dirtyRev to self.rev
This commit is contained in:
parent
9370d17b82
commit
11567d4db9
|
@ -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;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue