feat: switch torrent client to transmission
This commit is contained in:
@@ -1,28 +0,0 @@
|
|||||||
{ config, ... }:
|
|
||||||
let
|
|
||||||
hmModules = config.flake.modules.homeManager;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
flake.modules.nixos.qbittorrent-client = {
|
|
||||||
home-manager.sharedModules = [ hmModules.qbittorrent-client ];
|
|
||||||
|
|
||||||
networking.firewall = {
|
|
||||||
allowedTCPPorts = [ 43864 ];
|
|
||||||
allowedUDPPorts = [ 43864 ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
flake.modules.homeManager.qbittorrent-client =
|
|
||||||
{
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
home.packages = [ pkgs.qbittorrent ];
|
|
||||||
|
|
||||||
programs.niri.settings.spawn-at-startup = lib.mkAfter [
|
|
||||||
{ command = [ "qbittorrent" ]; }
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
{ config, ... }:
|
||||||
|
let
|
||||||
|
account = config.repo.account;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
flake.modules.nixos.transmission =
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
services.transmission = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.transmission_4;
|
||||||
|
openPeerPorts = true;
|
||||||
|
downloadDirPermissions = "775";
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
download-dir = "${account.homeDirectory}/torrents";
|
||||||
|
incomplete-dir = "${account.homeDirectory}/torrents/.incomplete";
|
||||||
|
peer-port = 43864;
|
||||||
|
umask = "002";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
users.users.${account.name}.extraGroups = [ config.services.transmission.group ];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -36,7 +36,7 @@ in
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
nixosModules.workstation-base
|
nixosModules.workstation-base
|
||||||
nixosModules.qbittorrent-client
|
nixosModules.transmission
|
||||||
nixosModules.steam
|
nixosModules.steam
|
||||||
./_hardware.nix
|
./_hardware.nix
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ in
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
nixosModules.workstation-base
|
nixosModules.workstation-base
|
||||||
nixosModules.qbittorrent-client
|
nixosModules.transmission
|
||||||
nixosModules.laptop-power
|
nixosModules.laptop-power
|
||||||
{
|
{
|
||||||
hardware.enableRedistributableFirmware = true;
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user