Merge pull request #75 from wi11-holdsworth/73

Install qui
This commit is contained in:
Will 2026-01-13 13:10:55 +11:00 committed by GitHub
commit 74a6ea5c76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 39 additions and 1 deletions

View file

@ -21,6 +21,7 @@
"paperless"
"prowlarr"
"qbittorrent"
"qui"
"radarr"
"radicale"
"readarr"

View file

@ -137,6 +137,13 @@ in
};
};
}
{
"qui" = {
"description" = "qBittorrent front end";
"icon" = "qui.svg";
"href" = "https://qui.fi33.buzz/";
};
}
{
"qBittorrent" = {
"description" = "BitTorrent client";
@ -315,7 +322,7 @@ in
{
"Media Management" = {
style = "row";
columns = 4;
columns = 3;
useEqualHeights = true;
};
}

View 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}";
};
}