feat: switch back to deluge
This commit is contained in:
@@ -0,0 +1,38 @@
|
|||||||
|
{ config, ... }:
|
||||||
|
let
|
||||||
|
account = config.repo.account;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
flake.modules.nixos.deluge =
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
sops.secrets.deluge-auth-file = {
|
||||||
|
owner = config.services.deluge.user;
|
||||||
|
group = config.services.deluge.group;
|
||||||
|
mode = "0400";
|
||||||
|
restartUnits = [ "deluged.service" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
services.deluge = {
|
||||||
|
enable = true;
|
||||||
|
declarative = true;
|
||||||
|
openFirewall = true;
|
||||||
|
authFile = config.sops.secrets.deluge-auth-file.path;
|
||||||
|
|
||||||
|
config = {
|
||||||
|
download_location = "${account.homeDirectory}/torrents/.incomplete";
|
||||||
|
move_completed = true;
|
||||||
|
move_completed_path = "${account.homeDirectory}/torrents";
|
||||||
|
listen_ports = [
|
||||||
|
43864
|
||||||
|
43864
|
||||||
|
];
|
||||||
|
random_port = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
home-manager.users.${account.name}.home.packages = [ pkgs.deluge ];
|
||||||
|
|
||||||
|
users.users.${account.name}.extraGroups = [ config.services.deluge.group ];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -36,7 +36,7 @@ in
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
nixosModules.workstation-base
|
nixosModules.workstation-base
|
||||||
nixosModules.transmission
|
nixosModules.deluge
|
||||||
nixosModules.steam
|
nixosModules.steam
|
||||||
./_hardware.nix
|
./_hardware.nix
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ in
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
nixosModules.workstation-base
|
nixosModules.workstation-base
|
||||||
nixosModules.transmission
|
nixosModules.deluge
|
||||||
nixosModules.laptop-power
|
nixosModules.laptop-power
|
||||||
{
|
{
|
||||||
hardware.enableRedistributableFirmware = true;
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user