nix-config/modules/home-manager-modules/programs/qbittorrent.nix

24 lines
419 B
Nix

{
lib,
pkgs,
config,
osConfig,
...
}: {
options.programs.qbittorrent = {
enable = lib.mkEnableOption "enable qbittorrent";
};
config = lib.mkIf config.programs.qbittorrent.enable (lib.mkMerge [
{
home.packages = with pkgs; [
qbittorrent
];
}
(
lib.mkIf osConfig.host.impermanence.enable {
# TODO: map impermanence for qbittorrent
}
)
]);
}