nixos-config/hosts/default.nix

37 lines
896 B
Nix
Raw Normal View History

2021-04-09 04:35:43 +00:00
{ unstable, stable2009 }:
2021-04-06 03:11:17 +00:00
let
2021-04-06 03:24:24 +00:00
commonModules = [
../.
({ ... }: {
config = {
sconfig.flakes.enable = true;
sconfig.flakes.rebuildPath = "github:buckley310/nixos-config";
};
})
];
2021-04-06 03:11:17 +00:00
mkStandardSystem = { name, pkgs }: pkgs.lib.nixosSystem {
system = "x86_64-linux";
2021-04-06 03:24:24 +00:00
modules = commonModules ++ [
2021-04-06 03:11:17 +00:00
pkgs.nixosModules.notDetected
2021-04-08 15:27:51 +00:00
(./. + "/${name}")
2021-04-06 03:11:17 +00:00
];
};
mkQemuSystem = { name, pkgs }: pkgs.lib.nixosSystem {
system = "x86_64-linux";
2021-04-06 03:24:24 +00:00
modules = commonModules ++ [
(x: { imports = [ "${x.modulesPath}/profiles/qemu-guest.nix" ]; })
2021-04-08 15:27:51 +00:00
(./. + "/${name}")
2021-04-06 03:11:17 +00:00
];
};
in
{
2021-04-09 04:35:43 +00:00
vm = mkQemuSystem { name = "vm"; pkgs = unstable; };
hp = mkStandardSystem { name = "hp"; pkgs = unstable; };
manta = mkStandardSystem { name = "manta"; pkgs = unstable; };
neo = mkStandardSystem { name = "neo"; pkgs = unstable; };
2021-04-06 03:11:17 +00:00
}