mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Remove homebox location
This commit is contained in:
parent
d829c2ed11
commit
8805fc79a9
1 changed files with 2 additions and 8 deletions
|
|
@ -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;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue