From 2929a10d62da1e38866cbb65bf3b981079507755 Mon Sep 17 00:00:00 2001 From: hektor Date: Sun, 5 Apr 2026 15:31:25 +0200 Subject: [PATCH] feat: add 'torrenting' module --- home/hosts/andromache/default.nix | 2 ++ home/modules/torrenting/default.nix | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 home/modules/torrenting/default.nix diff --git a/home/hosts/andromache/default.nix b/home/hosts/andromache/default.nix index bdffa96..16c6e5f 100644 --- a/home/hosts/andromache/default.nix +++ b/home/hosts/andromache/default.nix @@ -28,6 +28,7 @@ ../../modules/ssh ../../modules/taskwarrior ../../modules/terminal + ../../modules/torrenting ]; home = { @@ -50,6 +51,7 @@ git.github.enable = true; shell.bash.aliases.lang-js = true; shell.bash.addBinToPath = true; + torrenting.enable = true; programs = { home-manager.enable = true; diff --git a/home/modules/torrenting/default.nix b/home/modules/torrenting/default.nix new file mode 100644 index 0000000..6cc8975 --- /dev/null +++ b/home/modules/torrenting/default.nix @@ -0,0 +1,21 @@ +{ + config, + lib, + pkgs, + ... +}: + +let + cfg = config.torrenting; +in +{ + options.torrenting = { + enable = lib.mkEnableOption "transmission torrent client"; + }; + + config = lib.mkIf cfg.enable { + home.packages = with pkgs; [ + transmission_4 + ]; + }; +}