nixos-config/hosts/default.nix
2021-04-08 11:27:51 -04:00

36 lines
891 B
Nix

{ nixpkgs, stable2009 }:
let
commonModules = [
../.
({ ... }: {
config = {
sconfig.flakes.enable = true;
sconfig.flakes.rebuildPath = "github:buckley310/nixos-config";
};
})
];
mkStandardSystem = { name, pkgs }: pkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = commonModules ++ [
pkgs.nixosModules.notDetected
(./. + "/${name}")
];
};
mkQemuSystem = { name, pkgs }: pkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = commonModules ++ [
(x: { imports = [ "${x.modulesPath}/profiles/qemu-guest.nix" ]; })
(./. + "/${name}")
];
};
in
{
vm = mkQemuSystem { name = "vm"; pkgs = nixpkgs; };
hp = mkStandardSystem { name = "hp"; pkgs = nixpkgs; };
manta = mkStandardSystem { name = "manta"; pkgs = nixpkgs; };
neo = mkStandardSystem { name = "neo"; pkgs = nixpkgs; };
}