From 489a5b5f261d2865fe9b72d5e44c85ce11688e2c Mon Sep 17 00:00:00 2001 From: wi11-holdsworth <83637728+wi11-holdsworth@users.noreply.github.com> Date: Tue, 13 Jan 2026 12:45:06 +1100 Subject: [PATCH] feat(qui): install --- modules/nixos/bundles/server.nix | 1 + modules/nixos/features/qui.nix | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 modules/nixos/features/qui.nix diff --git a/modules/nixos/bundles/server.nix b/modules/nixos/bundles/server.nix index 315cffb..3789693 100644 --- a/modules/nixos/bundles/server.nix +++ b/modules/nixos/bundles/server.nix @@ -21,6 +21,7 @@ "paperless" "prowlarr" "qbittorrent" + "qui" "radarr" "radicale" "readarr" diff --git a/modules/nixos/features/qui.nix b/modules/nixos/features/qui.nix new file mode 100644 index 0000000..f7392f5 --- /dev/null +++ b/modules/nixos/features/qui.nix @@ -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}"; + }; +}