Files
nixos/hosts/default.nix
T
2025-12-16 09:07:55 -06:00

62 lines
1.7 KiB
Nix

{ top, overlays }:
let
vm = args: (unstable (args // { extraMods = [ top.nixos-generators.nixosModules.all-formats ]; }));
wsl = args: (unstable (args // { extraMods = [ top.wsl.nixosModules.wsl ]; }));
unstable =
{
channel ? top.nixunstable,
extraMods ? [ ],
name,
system ? "x86_64-linux",
hm ? top.hmunstable,
}:
channel.lib.nixosSystem {
specialArgs = {
inherit top;
inherit (top) self;
};
modules = [
{
nixpkgs = {
inherit system;
overlays =
overlays ++ (channel.lib.optional (system == "x86_64-linux") top.proxmox.overlays.${system});
};
}
# Imported ones
top.agenix.nixosModules.default
hm.nixosModules.home-manager
# Local ones
./baseline.nix
top.self.modules.nixosModule
./${name}
]
++ extraMods;
};
in
{
genesis = unstable { name = "genesis"; };
exodus = unstable { name = "exodus"; };
zeke = unstable { name = "zeke"; };
icdm-root = unstable { name = "icdm-root"; };
linode = unstable { name = "linode"; };
hosea = unstable { name = "hosea"; };
jeremiah = unstable { name = "jeremiah"; };
isaiah = unstable { name = "isaiah"; };
vm-gitlab = vm { name = "vm-gitlab"; };
proxmoxtemplate = unstable { name = "proxmoxtemplate"; };
iso = unstable { name = "iso"; };
# nix build '.#nixosConfigurations.wsl.config.system.build.installer'
nixos = wsl {
name = "wsl";
system = "aarch64-linux";
};
# nix build '.#nixosConfigurations.wsl-aarch.config.system.build.installer'
#nixos-arm = wsl {
#name = "wsl";
#system = "aarch64-linux";
#};
}