Add jackett config and generate colmena hosts from attribute set
This commit is contained in:
parent
682af9276c
commit
64d9dbd4b0
9 changed files with 46 additions and 48 deletions
68
flake.nix
68
flake.nix
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue