nix/hosts/deployments.nix

135 lines
2 KiB
Nix

{ inputs, ... }:
let
p = import ./parameters.nix;
hosts = p.hosts;
in
{
meta = {
nixpkgs = import inputs.nixpkgs {
system = "x86_64-linux";
overlays = [ ];
};
nodeNixpkgs = builtins.mapAttrs (_: v: v.pkgs) inputs.self.nixosConfigurations;
nodeSpecialArgs = builtins.mapAttrs (_: v: v._module.specialArgs) inputs.self.nixosConfigurations;
};
arr.deployment = {
targetHost = hosts.arr;
tags = [
"lxc"
"bacco"
"arr"
];
};
caddy.deployment = {
targetHost = hosts.caddy;
tags = [
"lxc"
"bacco"
"arr"
"auth"
"metrics"
"nextcloud"
"portainer"
"vaultwarden"
];
};
metrics.deployment = {
targetHost = hosts.metrics;
tags = [
"lxc"
"bacco"
"metrics"
];
};
nextcloud.deployment = {
targetHost = hosts.nextcloud;
tags = [
"lxc"
"bacco"
"nextcloud"
];
};
vaultwarden.deployment = {
targetHost = hosts.vaultwarden;
tags = [
"lxc"
"bacco"
"vaultwarden"
];
};
plex.deployment = {
targetHost = hosts.plex;
tags = [
"lxc"
"node"
];
};
portainer.deployment = {
targetHost = hosts.portainer;
tags = [
"lxc"
"bacco"
"portainer"
];
};
authentik.deployment = {
targetHost = hosts.authentik;
tags = [
"lxc"
"bacco"
"auth"
];
};
colmena.deployment = {
targetHost = hosts.colmena;
tags = [
"lxc"
"bacco"
"colmena"
];
};
dns01.deployment = {
targetHost = hosts.dns01;
tags = [
"lxc"
"bacco"
"dns"
];
};
dns02.deployment = {
targetHost = hosts.dns02;
tags = [
"lxc"
"bacco"
"dns"
];
};
shadowshocks.deployment = {
targetHost = hosts.shadowshocks;
tags = [
"lxc"
"bacco"
"shadowshocks"
];
};
deadbeef.deployment = {
allowLocalDeployment = true;
targetHost = null;
tags = [ "local" ];
};
}