feat: add 'torrenting' module
This commit is contained in:
@@ -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;
|
||||
|
||||
21
home/modules/torrenting/default.nix
Normal file
21
home/modules/torrenting/default.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user