mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
flake.nix: Remove redundant module lambda
This commit is contained in:
parent
439d7d493d
commit
a2710255c9
1 changed files with 2 additions and 2 deletions
|
@ -41,11 +41,11 @@
|
||||||
|
|
||||||
in
|
in
|
||||||
map addModuleDeclarationFile modules ++ [
|
map addModuleDeclarationFile modules ++ [
|
||||||
({ config, ... }: {
|
{
|
||||||
system.nixos.versionSuffix =
|
system.nixos.versionSuffix =
|
||||||
".${final.substring 0 8 (self.lastModifiedDate or self.lastModified or "19700101")}.${self.shortRev or "dirty"}";
|
".${final.substring 0 8 (self.lastModifiedDate or self.lastModified or "19700101")}.${self.shortRev or "dirty"}";
|
||||||
system.nixos.revision = final.mkIf (self ? rev) self.rev;
|
system.nixos.revision = final.mkIf (self ? rev) self.rev;
|
||||||
})
|
}
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue