nix-config/modules/nixos/programs/qbittorent/qbittorent.nix

20 lines
447 B
Nix

{...}: {
flake.nixosModules.qbittorent-service = {
lib,
config,
...
}: {
options.services.qbittorrent = {
mediaDir = lib.mkOption {
type = lib.types.path;
description = lib.mdDoc ''
The directory to create to store qbittorrent media.
'';
};
};
config = lib.mkIf config.services.qbittorrent.enable {
# Main qbittorrent configuration goes here if needed
};
};
}