Add jackett config and generate colmena hosts from attribute set

This commit is contained in:
fi 2023-07-16 02:00:44 +02:00
parent 682af9276c
commit 64d9dbd4b0
Signed by: fi
SSH key fingerprint: SHA256:d+6fQoDPMbSFK95zRVflRKZLRKF4cPSQb7VIxYkhFsA
9 changed files with 46 additions and 48 deletions

View file

@ -3,49 +3,41 @@
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { nixpkgs, ... }: {
outputs = { self, nixpkgs, ... }: {
hosts = {
nitter = {
site = "vs";
};
nixos-coturn = {
site = "vs";
};
tor-relay = {
site = "vs";
};
jackett = {
site = "vs";
};
};
generateColmenaHost = name: host : {
deployment = {
targetHost = "${name}.${host.site}.grzb.de";
targetUser = "colmena-deploy";
};
imports = [
./configuration/common
./configuration/proxmox-vm
./hosts/${name}
];
};
colmena = {
meta = {
nixpkgs = import nixpkgs {
system = "x86_64-linux";
};
};
nitter = { name, nodes, pkgs, ... }: {
deployment = {
targetHost = "nitter.vs.grzb.de";
targetUser = "colmena-deploy";
};
imports = [
./configuration/common
./configuration/proxmox-vm
./hosts/nitter
];
};
coturn = { name, nodes, pkgs, ... }: {
deployment = {
targetHost = "nixos-coturn.vs.grzb.de";
targetUser = "colmena-deploy";
};
imports = [
./configuration/common
./configuration/proxmox-vm
./hosts/coturn
];
};
tor-relay = { name, nodes, pkgs, ...}: {
deployment = {
targetHost = "tor-relay.vs.grzb.de";
targetUser = "colmena-deploy";
};
imports = [
./configuration/common
./configuration/proxmox-vm
./hosts/tor-relay
];
};
};
} // builtins.mapAttrs (self.generateColmenaHost) self.hosts;
};
}