2022-09-15 22:31:46 -07:00
|
|
|
{ pkgs }:
|
|
|
|
|
{
|
|
|
|
|
environment.systemPackages = with pkgs; [ qbittorrent-nox ];
|
|
|
|
|
|
2023-11-06 20:52:58 -08:00
|
|
|
users.groups.qbittorrent = { };
|
|
|
|
|
users.users.qbittorrent.group = "qbittorrent";
|
|
|
|
|
users.extraUsers.qbittorrent = {
|
|
|
|
|
isNormalUser = true;
|
|
|
|
|
extraGroups = [ "users" "multimedia" ];
|
|
|
|
|
};
|
|
|
|
|
|
2022-09-15 22:31:46 -07:00
|
|
|
systemd = {
|
|
|
|
|
packages = [ pkgs.qbittorrent-nox ];
|
|
|
|
|
|
|
|
|
|
services."qbittorrent-nox@fc" = {
|
|
|
|
|
enable = true;
|
|
|
|
|
serviceConfig = {
|
|
|
|
|
Type = "simple";
|
2023-11-06 20:52:58 -08:00
|
|
|
User = "qbittorrent";
|
2022-09-15 22:31:46 -07:00
|
|
|
ExecStart = "${pkgs.qbittorrent-nox}/bin/qbittorrent-nox";
|
|
|
|
|
};
|
|
|
|
|
wantedBy = [ "multi-user.target" ];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ 8080 ];
|
|
|
|
|
|
|
|
|
|
}
|