nix-infra/hosts.nix

72 lines
1.5 KiB
Nix
Raw Normal View History

2024-11-20 05:46:39 +01:00
{ nixpkgs, nixpkgs-unstable, ... }:
let
# Set of environment specific modules
2024-11-20 05:46:39 +01:00
environments = {
"proxmox" = [
./configuration/proxmox-vm
];
};
generateDefaults = hosts: builtins.mapAttrs (name: {
hostNixpkgs ? nixpkgs,
system ? "x86_64-linux",
# pkgs is explicitly defined so that overlays for each host can easily be created
2024-11-20 05:46:39 +01:00
pkgs ? hostNixpkgs.legacyPackages.${system},
environment ? "proxmox",
site
}: {
inherit hostNixpkgs system pkgs environment site;
# define common and host modules and additionally add environment specific modules
2024-11-20 05:46:39 +01:00
modules = [
./configuration/common
./hosts/${name}
] ++ environments.${environment};
2024-11-20 05:46:39 +01:00
}) hosts;
in
generateDefaults {
hydra = {
hostNixpkgs = nixpkgs-unstable;
site = "vs";
};
iperf = {
site = "vs";
};
jackett = {
site = "vs";
};
2024-11-20 05:46:39 +01:00
jellyfin = {
hostNixpkgs = nixpkgs-unstable;
2024-11-20 05:46:39 +01:00
site = "vs";
};
2024-11-20 05:46:40 +01:00
matrix = {
site = "vs";
};
2024-11-20 05:46:40 +01:00
metrics = {
site = "vs";
};
2024-11-20 05:46:40 +01:00
netbox = {
site = "vs";
};
2024-11-20 05:46:39 +01:00
nextcloud = {
hostNixpkgs = nixpkgs-unstable;
site = "vs";
};
2024-11-20 05:46:39 +01:00
nitter = {
2024-11-20 05:46:40 +01:00
hostNixpkgs = nixpkgs-unstable;
2024-11-20 05:46:39 +01:00
site = "vs";
};
coturn = {
2024-11-20 05:46:39 +01:00
site = "vs";
};
tor-relay = {
site = "vs";
};
web-public-2 = {
hostNixpkgs = nixpkgs-unstable;
site = "vs";
};
web-nonpublic-linuxcrewd = {
hostNixpkgs = nixpkgs-unstable;
site = "vs";
};
2024-11-20 05:46:39 +01:00
}