bencodepy migrated to flake

This commit is contained in:
Danilo Reyes 2024-12-15 01:29:20 -06:00
parent 97c27d2703
commit c798603dfe

View File

@ -1,23 +1,12 @@
{ {
inputs,
lib, lib,
config, config,
pkgs, pkgs,
... ...
}: }:
let let
bencodepy = pkgs.python3Packages.buildPythonPackage { bencodepy = inputs.jawz-scripts.packages.x86_64-linux.bencodepy;
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 ];
};
qbit_manage_env = pkgs.python3.withPackages ( qbit_manage_env = pkgs.python3.withPackages (
ps: ps:
builtins.attrValues { builtins.attrValues {
@ -38,6 +27,7 @@ let
in in
{ {
options.my.servers = { options.my.servers = {
unpackerr.enable = lib.mkEnableOption "enable";
qbittorrent = { qbittorrent = {
enable = lib.mkEnableOption "enable"; enable = lib.mkEnableOption "enable";
port = lib.mkOption { port = lib.mkOption {
@ -46,7 +36,6 @@ in
description = "The port to access qbittorrent web-ui"; description = "The port to access qbittorrent web-ui";
}; };
}; };
unpackerr.enable = lib.mkEnableOption "enable";
}; };
config = lib.mkIf config.my.servers.qbittorrent.enable { config = lib.mkIf config.my.servers.qbittorrent.enable {
home-manager.users.jawz.xdg.configFile."unpackerr.conf" = home-manager.users.jawz.xdg.configFile."unpackerr.conf" =