Test host specific nixpkgs

This commit is contained in:
fi 2023-07-30 01:38:31 +02:00
parent c1a2aa1d63
commit 5856edeb47
Signed by: fi
SSH key fingerprint: SHA256:d+6fQoDPMbSFK95zRVflRKZLRKF4cPSQb7VIxYkhFsA
4 changed files with 106 additions and 96 deletions

47
hosts.nix Normal file
View file

@ -0,0 +1,47 @@
{ nixpkgs, nixpkgs-unstable, ... }:
let
environments = {
"proxmox" = [
./configuration/proxmox-vm
./configuration/proxmox-vm/hardware-configuration.nix
];
};
generateDefaults = hosts: builtins.mapAttrs (name: {
hostNixpkgs ? nixpkgs,
system ? "x86_64-linux",
pkgs ? hostNixpkgs.legacyPackages.${system},
environment ? "proxmox",
site
}: {
inherit hostNixpkgs system pkgs environment site;
modules = [
./configuration/common
./hosts/${name}
] ++ (if environments ? ${environment} then environments.${environment} else []);
}) hosts;
in
generateDefaults {
hydra = {
hostNixpkgs = nixpkgs-unstable;
site = "vs";
};
iperf = {
site = "vs";
};
jackett = {
site = "vs";
};
nitter = {
site = "vs";
};
nixos-coturn = {
site = "vs";
};
tor-relay = {
site = "vs";
};
web-public-2 = {
hostNixpkgs = nixpkgs-unstable;
site = "vs";
};
}