dotfiles/nix/home/programs/qbittorrent/default.nix

22 lines
451 B
Nix
Raw Normal View History

{ 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 ];
}