nix/hosts/deployments.nix
= 398d3dfeca New file only for host declaration
Easier reference between nodes
2025-02-03 07:17:58 +01:00

106 lines
1.6 KiB
Nix

{ inputs, ... }:
let
hosts = import ./hosts.nix;
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"
"node"
"portainer"
];
};
authentik.deployment = {
targetHost = hosts.authentik;
tags = [
"lxc"
"node"
"auth"
];
};
colmena.deployment = {
targetHost = hosts.colmena;
tags = [
"lxc"
"node"
"colmena"
];
};
deadbeef.deployment = {
allowLocalDeployment = true;
targetHost = null;
tags = [ "local" ];
};
}