flake.nix: Support more systems
This commit is contained in:
parent
0bf1ab421b
commit
7ff2e743e8
|
@ -5,10 +5,17 @@
|
||||||
|
|
||||||
outputs = { self }:
|
outputs = { self }:
|
||||||
let
|
let
|
||||||
|
|
||||||
jobs = import ./pkgs/top-level/release.nix {
|
jobs = import ./pkgs/top-level/release.nix {
|
||||||
nixpkgs = self;
|
nixpkgs = self;
|
||||||
};
|
};
|
||||||
|
|
||||||
lib = import ./lib;
|
lib = import ./lib;
|
||||||
|
|
||||||
|
systems = [ "x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" ];
|
||||||
|
|
||||||
|
forAllSystems = f: lib.genAttrs systems (system: f system);
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
lib = lib // {
|
lib = lib // {
|
||||||
|
@ -32,7 +39,7 @@
|
||||||
}).nixos.manual.x86_64-linux;
|
}).nixos.manual.x86_64-linux;
|
||||||
};
|
};
|
||||||
|
|
||||||
legacyPackages = import ./. { system = "x86_64-linux"; };
|
legacyPackages = forAllSystems (system: import ./. { inherit system; });
|
||||||
|
|
||||||
nixosModules = {
|
nixosModules = {
|
||||||
notDetected = ./nixos/modules/installer/scan/not-detected.nix;
|
notDetected = ./nixos/modules/installer/scan/not-detected.nix;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user