From c798603dfe72b5583193312209cc9d1ed5a2d428 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Sun, 15 Dec 2024 01:29:20 -0600 Subject: [PATCH] bencodepy migrated to flake --- modules/servers/qbittorrent.nix | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/modules/servers/qbittorrent.nix b/modules/servers/qbittorrent.nix index 6575634..289fcfd 100644 --- a/modules/servers/qbittorrent.nix +++ b/modules/servers/qbittorrent.nix @@ -1,23 +1,12 @@ { + inputs, lib, config, pkgs, ... }: let - bencodepy = pkgs.python3Packages.buildPythonPackage { - pname = "bencodepy"; - version = "0.9.5"; - pyproject = true; - src = pkgs.fetchFromGitHub { - owner = "eweast"; - repo = "bencodepy"; - rev = "a9c145bd087c61dd8fb28a9dfad46d085c8b8290"; - hash = "sha256-ISiMNTrA4J8NYUQSmdVFaro1RxkSqvXhz6LpoSn/fLQ="; - fetchSubmodules = true; - }; - build-system = [ pkgs.python3Packages.setuptools ]; - }; + bencodepy = inputs.jawz-scripts.packages.x86_64-linux.bencodepy; qbit_manage_env = pkgs.python3.withPackages ( ps: builtins.attrValues { @@ -38,6 +27,7 @@ let in { options.my.servers = { + unpackerr.enable = lib.mkEnableOption "enable"; qbittorrent = { enable = lib.mkEnableOption "enable"; port = lib.mkOption { @@ -46,7 +36,6 @@ in description = "The port to access qbittorrent web-ui"; }; }; - unpackerr.enable = lib.mkEnableOption "enable"; }; config = lib.mkIf config.my.servers.qbittorrent.enable { home-manager.users.jawz.xdg.configFile."unpackerr.conf" =