diff --git a/modules/server/containers/apps/openhab.nix b/modules/server/containers/apps/openhab.nix index 0acb2f5..1a2320f 100644 --- a/modules/server/containers/apps/openhab.nix +++ b/modules/server/containers/apps/openhab.nix @@ -7,9 +7,9 @@ in { sops = false; db = false; paths = [ - { path="${serverCfg.configPath}/openhab/conf"; owner="1000:1000"; mode = "0755"; } - { path="${serverCfg.configPath}/openhab/userdata"; owner="1000:1000"; mode = "0755"; } - { path="${serverCfg.configPath}/openhab/addons"; owner="1000:1000"; mode = "0755"; } + { path="${serverCfg.path.config}/openhab/conf"; owner="1000:1000"; mode = "0755"; } + { path="${serverCfg.path.config}/openhab/userdata"; owner="1000:1000"; mode = "0755"; } + { path="${serverCfg.path.config}/openhab/addons"; owner="1000:1000"; mode = "0755"; } ]; containers = { @@ -31,9 +31,9 @@ in { ]; overrides = { volumes = [ - "${serverCfg.configPath}/openhab/conf:/openhab/conf" - "${serverCfg.configPath}/openhab/userdata:/openhab/userdata" - "${serverCfg.configPath}/openhab/addons:/opt/openhab/addons" + "${serverCfg.path.config}/openhab/conf:/openhab/conf" + "${serverCfg.path.config}/openhab/userdata:/openhab/userdata" + "${serverCfg.path.config}/openhab/addons:/opt/openhab/addons" "/var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket:ro" ]; };