diff --git a/flake.nix b/flake.nix index 62d120ba..8f53c1ff 100644 --- a/flake.nix +++ b/flake.nix @@ -363,6 +363,14 @@ system = "x86_64-linux"; }; + keycloak = nixosSystem' { + modules = [ + ./lib/lxc-container.nix + ./hosts/containers/keycloak + ]; + system = "x86_64-linux"; + }; + }; nixosModule = import ./lib; diff --git a/hosts/containers/keycloak/default.nix b/hosts/containers/keycloak/default.nix index bda2e26b..904f511e 100644 --- a/hosts/containers/keycloak/default.nix +++ b/hosts/containers/keycloak/default.nix @@ -1,8 +1,9 @@ +{ hostRegistry, config, ... }: { networking.hostName = "keycloak"; networking.useNetworkd = true; networking.interfaces.eth0.ipv4.addresses = [{ - address = "172.20.73.59"; + address = hostRegistry.hosts.${config.networking.hostName}.ip4; prefixLength = 26; }]; networking.defaultGateway = "172.20.73.1";