flake.nix: Support more systems

This commit is contained in:
Eelco Dolstra 2019-10-15 18:17:21 +02:00
parent 0bf1ab421b
commit 7ff2e743e8
1 changed files with 8 additions and 1 deletions

View File

@ -5,10 +5,17 @@
outputs = { self }:
let
jobs = import ./pkgs/top-level/release.nix {
nixpkgs = self;
};
lib = import ./lib;
systems = [ "x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" ];
forAllSystems = f: lib.genAttrs systems (system: f system);
in
{
lib = lib // {
@ -32,7 +39,7 @@
}).nixos.manual.x86_64-linux;
};
legacyPackages = import ./. { system = "x86_64-linux"; };
legacyPackages = forAllSystems (system: import ./. { inherit system; });
nixosModules = {
notDetected = ./nixos/modules/installer/scan/not-detected.nix;