Host qui #75
2 changed files with 31 additions and 0 deletions
|
|
@ -21,6 +21,7 @@
|
||||||
"paperless"
|
"paperless"
|
||||||
"prowlarr"
|
"prowlarr"
|
||||||
"qbittorrent"
|
"qbittorrent"
|
||||||
|
"qui"
|
||||||
"radarr"
|
"radarr"
|
||||||
"radicale"
|
"radicale"
|
||||||
"readarr"
|
"readarr"
|
||||||
|
|
|
||||||
30
modules/nixos/features/qui.nix
Normal file
30
modules/nixos/features/qui.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
{
|
||||||
|
# keep-sorted start
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
# keep-sorted end
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
port = 5019;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
environment.systemPackages = [ pkgs.qui ];
|
||||||
|
|
||||||
|
systemd.user.services.qui = {
|
||||||
|
after = [ "network.target" ];
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
serviceConfig.ExecStart = "${lib.getExe pkgs.qui} serve";
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
QUI__PORT = toString port;
|
||||||
|
QUI__DATA_DIR = "/srv/qui";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts."qui.fi33.buzz" = {
|
||||||
|
forceSSL = true;
|
||||||
|
useACMEHost = "fi33.buzz";
|
||||||
|
locations."/".proxyPass = "http://localhost:${toString port}";
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue