mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
36 lines
896 B
Nix
36 lines
896 B
Nix
{ unstable, 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 = unstable; };
|
|
hp = mkStandardSystem { name = "hp"; pkgs = unstable; };
|
|
manta = mkStandardSystem { name = "manta"; pkgs = unstable; };
|
|
neo = mkStandardSystem { name = "neo"; pkgs = unstable; };
|
|
}
|