44 lines
819 B
Nix
44 lines
819 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
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";
|
|
};
|
|
};
|
|
} // builtins.mapAttrs (self.generateColmenaHost) self.hosts;
|
|
};
|
|
}
|