allow non-x86_64 configurations

This commit is contained in:
Sean Buckley 2021-04-09 18:32:55 -04:00
parent 98530a294c
commit 8f75961458

View file

@ -11,15 +11,15 @@ let
}) })
]; ];
mkStandardSystem = { name, pkgs }: pkgs.lib.nixosSystem { mkStandardSystem = { name, pkgs, system }: pkgs.lib.nixosSystem {
system = "x86_64-linux"; inherit system;
modules = (commonModules name) ++ [ modules = (commonModules name) ++ [
pkgs.nixosModules.notDetected pkgs.nixosModules.notDetected
]; ];
}; };
mkQemuSystem = { name, pkgs }: pkgs.lib.nixosSystem { mkQemuSystem = { name, pkgs, system }: pkgs.lib.nixosSystem {
system = "x86_64-linux"; inherit system;
modules = (commonModules name) ++ [ modules = (commonModules name) ++ [
(x: { imports = [ "${x.modulesPath}/profiles/qemu-guest.nix" ]; }) (x: { imports = [ "${x.modulesPath}/profiles/qemu-guest.nix" ]; })
]; ];
@ -27,8 +27,8 @@ let
in in
{ {
vm = mkQemuSystem { name = "vm"; pkgs = unstable; }; vm = mkQemuSystem { name = "vm"; system = "x86_64-linux"; pkgs = unstable; };
hp = mkStandardSystem { name = "hp"; pkgs = unstable; }; hp = mkStandardSystem { name = "hp"; system = "x86_64-linux"; pkgs = unstable; };
manta = mkStandardSystem { name = "manta"; pkgs = unstable; }; manta = mkStandardSystem { name = "manta"; system = "x86_64-linux"; pkgs = unstable; };
neo = mkStandardSystem { name = "neo"; pkgs = unstable; }; neo = mkStandardSystem { name = "neo"; system = "x86_64-linux"; pkgs = unstable; };
} }