mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
optimize forAllSystems
This commit is contained in:
parent
f1538700fb
commit
503c271f92
1 changed files with 3 additions and 4 deletions
|
@ -42,10 +42,9 @@
|
||||||
lib = {
|
lib = {
|
||||||
getHosts = import lib/hosts.nix;
|
getHosts = import lib/hosts.nix;
|
||||||
morphHosts = import lib/morph.nix;
|
morphHosts = import lib/morph.nix;
|
||||||
forAllSystems = f: builtins.listToAttrs (map
|
forAllSystems = f: builtins.mapAttrs
|
||||||
(name: { inherit name; value = f name; })
|
(name: _: f name)
|
||||||
(builtins.attrNames nixpkgs.legacyPackages)
|
(nixpkgs.legacyPackages);
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
packages = self.lib.forAllSystems
|
packages = self.lib.forAllSystems
|
||||||
|
|
Loading…
Reference in a new issue