22 lines
451 B
Nix
22 lines
451 B
Nix
|
|
{ pkgs }:
|
||
|
|
{
|
||
|
|
environment.systemPackages = with pkgs; [ qbittorrent-nox ];
|
||
|
|
|
||
|
|
systemd = {
|
||
|
|
packages = [ pkgs.qbittorrent-nox ];
|
||
|
|
|
||
|
|
services."qbittorrent-nox@fc" = {
|
||
|
|
enable = true;
|
||
|
|
serviceConfig = {
|
||
|
|
Type = "simple";
|
||
|
|
User = "rtorrent";
|
||
|
|
ExecStart = "${pkgs.qbittorrent-nox}/bin/qbittorrent-nox";
|
||
|
|
};
|
||
|
|
wantedBy = [ "multi-user.target" ];
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
networking.firewall.allowedTCPPorts = [ 8080 ];
|
||
|
|
|
||
|
|
}
|