26 lines
625 B
Nix
26 lines
625 B
Nix
{ 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 ];
|
|
};
|
|
}
|