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 = {
|
||||
getHosts = import lib/hosts.nix;
|
||||
morphHosts = import lib/morph.nix;
|
||||
forAllSystems = f: builtins.listToAttrs (map
|
||||
(name: { inherit name; value = f name; })
|
||||
(builtins.attrNames nixpkgs.legacyPackages)
|
||||
);
|
||||
forAllSystems = f: builtins.mapAttrs
|
||||
(name: _: f name)
|
||||
(nixpkgs.legacyPackages);
|
||||
};
|
||||
|
||||
packages = self.lib.forAllSystems
|
||||
|
|
Loading…
Reference in a new issue