2025-12-16 16:48:11 -06:00
|
|
|
{
|
|
|
|
|
top,
|
|
|
|
|
metadata,
|
2025-12-18 10:45:24 -06:00
|
|
|
nixpkgs,
|
2025-12-16 16:48:11 -06:00
|
|
|
}:
|
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 ]; }));
|
2024-10-11 12:28:53 -05:00
|
|
|
wsl = args: (unstable (args // { extraMods = [ top.wsl.nixosModules.wsl ]; }));
|
|
|
|
|
unstable =
|
|
|
|
|
{
|
2025-12-16 09:07:55 -06:00
|
|
|
channel ? top.nixunstable,
|
2024-10-11 12:28:53 -05:00
|
|
|
extraMods ? [ ],
|
|
|
|
|
name,
|
2025-12-16 09:07:55 -06:00
|
|
|
hm ? top.hmunstable,
|
2024-10-03 11:26:39 -05:00
|
|
|
}:
|
2025-12-22 15:24:26 -06:00
|
|
|
let
|
|
|
|
|
inherit (metadata.hosts.${name}) system;
|
|
|
|
|
in
|
2024-10-03 11:26:39 -05:00
|
|
|
channel.lib.nixosSystem {
|
2025-12-22 15:24:26 -06:00
|
|
|
pkgs = nixpkgs.${system};
|
2024-10-11 12:28:53 -05:00
|
|
|
specialArgs = {
|
2025-12-16 16:48:11 -06:00
|
|
|
inherit metadata top;
|
2024-10-11 12:28:53 -05:00
|
|
|
};
|
2024-10-03 11:26:39 -05:00
|
|
|
modules = [
|
2025-06-10 14:28:46 -05:00
|
|
|
# Imported ones
|
2024-10-11 12:28:53 -05:00
|
|
|
top.agenix.nixosModules.default
|
2024-10-03 11:26:39 -05:00
|
|
|
hm.nixosModules.home-manager
|
2025-06-10 14:28:46 -05:00
|
|
|
# Local ones
|
|
|
|
|
./baseline.nix
|
|
|
|
|
top.self.modules.nixosModule
|
2024-10-03 11:26:39 -05:00
|
|
|
./${name}
|
2025-11-02 22:59:43 -06:00
|
|
|
]
|
|
|
|
|
++ extraMods;
|
2024-10-03 11:26:39 -05:00
|
|
|
};
|
|
|
|
|
in
|
2025-06-10 14:28:46 -05:00
|
|
|
{
|
2024-11-23 01:23:26 -06:00
|
|
|
genesis = unstable { name = "genesis"; };
|
2024-10-03 11:26:39 -05:00
|
|
|
exodus = unstable { name = "exodus"; };
|
2025-07-02 11:55:35 -05:00
|
|
|
zeke = unstable { name = "zeke"; };
|
2024-10-03 11:26:39 -05:00
|
|
|
icdm-root = unstable { name = "icdm-root"; };
|
2024-11-23 01:23:26 -06:00
|
|
|
linode = unstable { name = "linode"; };
|
2024-10-03 11:26:39 -05:00
|
|
|
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"; };
|
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"; };
|
2024-10-03 11:26:39 -05:00
|
|
|
# nix build '.#nixosConfigurations.wsl.config.system.build.installer'
|
2025-12-22 15:24:26 -06:00
|
|
|
nixos = wsl { name = "wsl"; };
|
2024-10-03 11:26:39 -05:00
|
|
|
# nix build '.#nixosConfigurations.wsl-aarch.config.system.build.installer'
|
2025-12-07 17:44:58 -06:00
|
|
|
#nixos-arm = wsl {
|
|
|
|
|
#name = "wsl";
|
|
|
|
|
#system = "aarch64-linux";
|
|
|
|
|
#};
|
2023-05-11 09:32:05 -05:00
|
|
|
}
|