Files
nixos/hosts/default.nix
T

70 lines
1.8 KiB
Nix
Raw Normal View History

2024-11-25 13:56:52 -06:00
{ top, ... }@all:
2023-05-11 09:32:05 -05:00
let
2024-11-19 22:43:13 -06:00
vm = args: (unstable (args // { extraMods = [ top.nixos-generators.nixosModules.all-formats ]; }));
wsl = args: (unstable (args // { extraMods = [ top.wsl.nixosModules.wsl ]; }));
unstable =
args:
(machine (
args
// {
channel = top.nixunstable;
hm = top.hmunstable;
}
));
machine =
{
channel ? top.nixstable,
extraMods ? [ ],
name,
system ? "x86_64-linux",
hm ? top.hm,
}:
let
nixpkgs = import channel { inherit system; };
2024-11-25 13:56:52 -06:00
overlays = all.overlays ++ [ top.proxmox.overlays.${system} ];
in
channel.lib.nixosSystem {
inherit system;
specialArgs = {
inherit nixpkgs top overlays;
2024-10-19 16:39:24 -05:00
inherit (top) self;
};
modules = [
2025-06-10 14:28:46 -05:00
# Imported ones
top.agenix.nixosModules.default
hm.nixosModules.home-manager
2024-12-18 22:09:20 -06:00
top.nurpkgs.modules.nixos.default
2025-06-10 14:28:46 -05:00
# Local ones
./baseline.nix
top.self.modules.nixosModule
./${name}
] ++ extraMods;
};
in
2025-06-10 14:28:46 -05:00
{
2024-11-23 01:23:26 -06:00
genesis = unstable { name = "genesis"; };
exodus = unstable { name = "exodus"; };
2025-07-02 11:55:35 -05:00
zeke = unstable { name = "zeke"; };
icdm-root = unstable { name = "icdm-root"; };
2024-11-23 01:23:26 -06:00
linode = unstable { name = "linode"; };
hosea = unstable { name = "hosea"; };
jeremiah = unstable { name = "jeremiah"; };
2024-11-18 21:11:17 -06:00
isaiah = unstable { name = "isaiah"; };
2024-11-19 22:43:13 -06:00
2025-04-14 17:55:07 -05:00
vm-gitlab = vm { name = "vm-gitlab"; };
2024-11-21 23:13:21 -06:00
vm-jellyfin = vm { name = "vm-jellyfin"; };
2025-04-14 00:44:19 -05:00
proxmoxtemplate = unstable { name = "proxmoxtemplate"; };
2024-11-19 22:43:13 -06:00
2024-11-23 01:23:26 -06:00
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";
};
2023-05-11 09:32:05 -05:00
}