add qbittorrent
This commit is contained in:
parent
684e083884
commit
2535c0966b
@ -62,6 +62,7 @@
|
||||
gateway = "192.168.1.254";
|
||||
};
|
||||
};
|
||||
qbittorrent.enable = true;
|
||||
};
|
||||
|
||||
home-manager = {
|
||||
|
||||
@ -3,5 +3,6 @@
|
||||
imports = [
|
||||
./openssh.nix
|
||||
./wireshark.nix
|
||||
./qbittorrent.nix
|
||||
];
|
||||
}
|
||||
|
||||
20
modules/nix/networking/qbittorrent.nix
Normal file
20
modules/nix/networking/qbittorrent.nix
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkOption types;
|
||||
in
|
||||
{
|
||||
options.smayzy.qbittorrent.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "qbittorrent";
|
||||
};
|
||||
|
||||
config = mkIf config.smayzy.qbittorrent.enable {
|
||||
environment.systemPackages = with pkgs; [ qbittorrent ];
|
||||
};
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user