feat: add 'torrenting' module

This commit is contained in:
2026-04-05 15:31:25 +02:00
parent 4cac77f4c7
commit 2929a10d62
2 changed files with 23 additions and 0 deletions

View File

@@ -28,6 +28,7 @@
../../modules/ssh ../../modules/ssh
../../modules/taskwarrior ../../modules/taskwarrior
../../modules/terminal ../../modules/terminal
../../modules/torrenting
]; ];
home = { home = {
@@ -50,6 +51,7 @@
git.github.enable = true; git.github.enable = true;
shell.bash.aliases.lang-js = true; shell.bash.aliases.lang-js = true;
shell.bash.addBinToPath = true; shell.bash.addBinToPath = true;
torrenting.enable = true;
programs = { programs = {
home-manager.enable = true; home-manager.enable = true;

View File

@@ -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
];
};
}