try out putting revcount in version
This commit is contained in:
parent
7f9eb10e30
commit
e995d02e9c
1 changed files with 9 additions and 2 deletions
11
flake.nix
11
flake.nix
|
|
@ -9,8 +9,15 @@
|
|||
|
||||
outputs = inputs: with inputs;
|
||||
let
|
||||
base = {
|
||||
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
|
||||
revCount = "295536";
|
||||
base = { config, ... }: {
|
||||
system = {
|
||||
configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
|
||||
nixos = rec {
|
||||
version = config.system.nixos.release + versionSuffix;
|
||||
versionSuffix = ".${nixpkgs.lib.substring 0 8 (nixpkgs.lastModifiedDate or nixpkgs.lastModified or "19700101")}.r${revCount}-${nixpkgs.lib.substring 0 11 (nixpkgs.rev or "dirty")}";
|
||||
};
|
||||
};
|
||||
nix.registry.nixpkgs.flake = nixpkgs;
|
||||
nixpkgs.overlays = builtins.attrValues overlays;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue