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