26 lines
380 B
Nix
Raw Normal View History

2024-04-20 09:42:06 -04:00
{
config,
pkgs,
lib,
...
}:
{
2022-05-01 23:39:50 -04:00
2022-12-21 14:18:03 -07:00
options = {
qbittorrent = {
enable = lib.mkEnableOption {
description = "Enable qBittorrent.";
default = false;
};
};
};
config = lib.mkIf (config.gui.enable && config.qbittorrent.enable) {
2022-05-01 23:39:50 -04:00
home-manager.users.${config.user} = {
2022-05-01 23:39:50 -04:00
home.packages = with pkgs; [ qbittorrent ];
};
};
}