1
0
Fork 0
selfhostblocks/docs/examples/vaultwarden/distribution.nix
2023-04-04 00:07:58 -07:00

23 lines
471 B
Nix

{ infrastructure
, pkgs ? import <nixpkgs> {}
}:
with infrastructure;
let
customPkgs = (pkgs.callPackage (./../../..) {}).customPkgs {
inherit pkgs;
};
keycloak = customPkgs.keycloak {};
vaultwarden = customPkgs.vaultwarden {};
in
{
HaproxyService = [ machine1 ];
KeycloakService = [ machine1 ];
KeycloakCliService = [ machine1 ];
KeycloakHaproxyService = [ machine1 ];
}
// keycloak.distribute [ machine1 ]
// vaultwarden.distribute [ machine1 ]