dotfiles/modules/applications/qbittorrent.nix

22 lines
374 B
Nix
Raw Normal View History

{ config, pkgs, lib, ... }: {
2022-05-02 03:39:50 +00:00
2022-12-21 21:18:03 +00:00
options = {
qbittorrent = {
enable = lib.mkEnableOption {
description = "Enable qBittorrent.";
default = false;
};
};
};
config = lib.mkIf (config.gui.enable && config.qbittorrent.enable) {
2022-05-02 03:39:50 +00:00
home-manager.users.${config.user} = {
2022-05-02 03:39:50 +00:00
home.packages = with pkgs; [ qbittorrent ];
};
};
}