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

29 lines
652 B
Nix
Raw Permalink Normal View History

2023-11-19 17:01:17 -08:00
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [ qbittorrent-nox ];
users.groups.qbittorrent = { };
users.users.qbittorrent.group = "qbittorrent";
users.extraUsers.qbittorrent = {
isNormalUser = true;
extraGroups = [ "users" "multimedia" ];
};
systemd = {
packages = [ pkgs.qbittorrent-nox ];
services."qbittorrent-nox@fc" = {
enable = true;
serviceConfig = {
Type = "simple";
User = "qbittorrent";
ExecStart = "${pkgs.qbittorrent-nox}/bin/qbittorrent-nox";
};
wantedBy = [ "multi-user.target" ];
};
};
networking.firewall.allowedTCPPorts = [ 8080 ];
}