aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2025-12-25 18:47:09 +0100
committerMartin Fischer <martin@push-f.com>2025-12-25 20:17:35 +0100
commiteba8b48ed06b55aefc7ba80a6102cfbe77153897 (patch)
treef7a25f8130980562f7d0d77aac093d1189401f28
parent4e9dcdaffbe3096d759d3200b65eff5e5c3ead31 (diff)
refactor: rename torrent module to qbittorrent
-rw-r--r--nixos/hosts/ev/default.nix6
-rw-r--r--nixos/hosts/ev/qbittorrent.nix (renamed from nixos/hosts/ev/torrent.nix)10
2 files changed, 8 insertions, 8 deletions
diff --git a/nixos/hosts/ev/default.nix b/nixos/hosts/ev/default.nix
index 252e5c8..0723b8d 100644
--- a/nixos/hosts/ev/default.nix
+++ b/nixos/hosts/ev/default.nix
@@ -24,8 +24,8 @@ in
./kodi.nix
./miniflux.nix
./navidrome.nix
- ./torrent.nix
./hosehawk.nix
+ ./qbittorrent.nix
];
# enable unlocking full disk encryption via SSH
@@ -49,8 +49,8 @@ in
networking.interfaces.enp3s0.useDHCP = true;
home-automation.zigbee2mqttPort = ports.zigbee2mqtt;
- torrent.qbittorrentWebUiPort = ports.qbittorrent;
- torrent.networkNamespace = "se";
+ qbittorrent.webUiPort = ports.qbittorrent;
+ qbittorrent.networkNamespace = "se";
monitoring.alloyUiPort = ports.grafanaAlloy;
monitoring.lokiPort = ports.grafanaLoki;
monitoring.prometheusPort = ports.prometheus;
diff --git a/nixos/hosts/ev/torrent.nix b/nixos/hosts/ev/qbittorrent.nix
index a09c507..697533b 100644
--- a/nixos/hosts/ev/torrent.nix
+++ b/nixos/hosts/ev/qbittorrent.nix
@@ -2,11 +2,11 @@
let
helpers = import <top/helpers.nix> { inherit config lib pkgs; };
- cfg = config.torrent;
+ cfg = config.qbittorrent;
in
{
- options.torrent = {
- qbittorrentWebUiPort = lib.mkOption {
+ options.qbittorrent = {
+ webUiPort = lib.mkOption {
type = lib.types.int;
};
networkNamespace = lib.mkOption {
@@ -31,13 +31,13 @@ in
enable = true;
path = [pkgs.qbittorrent-nox];
serviceConfig = {
- ExecStart = "${pkgs.qbittorrent-nox}/bin/qbittorrent-nox --webui-port=${toString cfg.qbittorrentWebUiPort}";
+ ExecStart = "${pkgs.qbittorrent-nox}/bin/qbittorrent-nox --webui-port=${toString cfg.webUiPort}";
User = "qbittorrent";
};
wantedBy = ["multi-user.target"];
};
- services.qbittorrent-webui-proxy = helpers.mkPortProxy "qbittorrent" cfg.networkNamespace cfg.qbittorrentWebUiPort;
+ services.qbittorrent-webui-proxy = helpers.mkPortProxy "qbittorrent" cfg.networkNamespace cfg.webUiPort;
};
};
}