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