Remove homebox location

This commit is contained in:
muon 2025-01-14 12:33:22 +00:00
parent d829c2ed11
commit 8805fc79a9

View file

@ -10,7 +10,7 @@ in with lib; {
description = "enables homebox server"; description = "enables homebox server";
}; };
location = mkOption { location = mkOption {
default = "/srv/homebox/data"; default = "/srv/homebox";
description = "location for homebox data"; description = "location for homebox data";
}; };
}; };
@ -22,15 +22,9 @@ in with lib; {
settings = { settings = {
HBOX_WEB_PORT = toString port; HBOX_WEB_PORT = toString port;
HBOX_WEB_HOST = "0.0.0.0"; HBOX_WEB_HOST = "0.0.0.0";
HBOX_STORAGE_DATA = cfg.location; HBOX_OPTIONS_ALLOW_REGISTRATION = "true";
HBOX_STORAGE_SQLITE_URL =
"${cfg.location}/homebox.db?_pragma=busy_timeout=999&_pragma=journal_mode=WAL&_fk=1";
HBOX_OPTIONS_ALLOW_REGISTRATION = "false";
HBOX_MODE = "production"; HBOX_MODE = "production";
}; };
}; };
systemd.services.homebox.serviceConfig.WorkingDirectory =
mkForce cfg.location;
}; };
} }