diff --git a/nixos/modules/services/misc/open-webui.nix b/nixos/modules/services/misc/open-webui.nix index 7f1a7c5b538f..fad81fb1ee2a 100644 --- a/nixos/modules/services/misc/open-webui.nix +++ b/nixos/modules/services/misc/open-webui.nix @@ -67,13 +67,9 @@ in wantedBy = [ "multi-user.target" ]; after = [ "network.target" ]; - preStart = '' - mkdir -p ${cfg.stateDir}/static - ''; - environment = { - STATIC_DIR = "${cfg.stateDir}/static"; - DATA_DIR = "${cfg.stateDir}"; + STATIC_DIR = "."; + DATA_DIR = "."; } // cfg.environment; serviceConfig = {