lol

nixos/shiori: add web root option

Fixes #260328, allowing users to host the service somewhere other than
the root of the host.

Co-authored-by: h7x4 <h7x4@nani.wtf>

+8 -1
+8 -1
nixos/modules/services/web-apps/shiori.nix
··· 29 29 default = 8080; 30 30 description = lib.mdDoc "The port of the Shiori web application"; 31 31 }; 32 + 33 + webRoot = mkOption { 34 + type = types.str; 35 + default = "/"; 36 + example = "/shiori"; 37 + description = lib.mdDoc "The root of the Shiori web application"; 38 + }; 32 39 }; 33 40 }; 34 41 ··· 40 47 environment.SHIORI_DIR = "/var/lib/shiori"; 41 48 42 49 serviceConfig = { 43 - ExecStart = "${package}/bin/shiori serve --address '${address}' --port '${toString port}'"; 50 + ExecStart = "${package}/bin/shiori serve --address '${address}' --port '${toString port}' --webroot '${webRoot}'"; 44 51 45 52 DynamicUser = true; 46 53 StateDirectory = "shiori";