From 742760afa73127932840fb2fb7f655d6d116e047 Mon Sep 17 00:00:00 2001 From: soraefir Date: Thu, 21 May 2026 02:00:42 +0200 Subject: [PATCH] fix openhab --- modules/server/containers/apps/openhab.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/modules/server/containers/apps/openhab.nix b/modules/server/containers/apps/openhab.nix index 682cad8..a881c76 100644 --- a/modules/server/containers/apps/openhab.nix +++ b/modules/server/containers/apps/openhab.nix @@ -15,17 +15,21 @@ in { containers = { server = builder.mkContainer { subdomain = containerCfg.subdomain; - image = "openhab/openhab:${version}"; + image = "openhab/openhab:${version}-debian"; port = 8080; extraEnv = { - "USER_ID" = "1000"; - "GROUP_ID" = "1000"; - "CRYPTO_POLICY" = "unlimited"; - "OPENHAB_HTTP_PORT" = "8080"; + USER_ID = "1000"; + GROUP_ID = "1000"; + CRYPTO_POLICY = "unlimited"; + OPENHAB_HTTP_PORT = "8080"; }; + extraOptions = [ + "--network=host" + ]; overrides = { volumes = [ - "${serverCfg.configPath}/openhab:/openhab" + "${serverCfg.configPath}/openhab/conf:/openhab/conf" + "${serverCfg.configPath}/openhab/userdata:/openhab/userdata" "${serverCfg.configPath}/openhab/addons:/opt/openhab/addons" ]; };