properly overlayed qbittorrent-api

This commit is contained in:
Danilo Reyes 2025-05-24 14:32:49 -06:00
parent cbc92f1d0d
commit 27aa640418
3 changed files with 23 additions and 3 deletions

17
flake.lock generated
View File

@ -939,6 +939,22 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-unstable": {
"locked": {
"lastModified": 1748026106,
"narHash": "sha256-6m1Y3/4pVw1RWTsrkAK2VMYSzG4MMIj7sqUy7o8th1o=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "063f43f2dbdef86376cc29ad646c45c46e93234c",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1747953325, "lastModified": 1747953325,
@ -1057,6 +1073,7 @@
"nix-gaming": "nix-gaming", "nix-gaming": "nix-gaming",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"nixpkgs-small": "nixpkgs-small", "nixpkgs-small": "nixpkgs-small",
"nixpkgs-unstable": "nixpkgs-unstable",
"nixtendo-switch": "nixtendo-switch", "nixtendo-switch": "nixtendo-switch",
"nur": "nur", "nur": "nur",
"sops-nix": "sops-nix", "sops-nix": "sops-nix",

View File

@ -2,9 +2,14 @@
lib, lib,
config, config,
pkgs, pkgs,
inputs,
... ...
}: }:
let let
pkgsU = import inputs.nixpkgs-unstable {
system = "x86_64-linux";
config.allowUnfree = true;
};
qbit_manage_env = pkgs.python3.withPackages ( qbit_manage_env = pkgs.python3.withPackages (
ps: ps:
builtins.attrValues { builtins.attrValues {
@ -13,13 +18,13 @@ let
gitpython gitpython
humanize humanize
pytimeparse2 pytimeparse2
qbittorrent-api
requests requests
retrying retrying
ruamel-yaml ruamel-yaml
schedule schedule
bencode-py bencode-py
; ;
inherit (pkgsU.python3Packages) qbittorrent-api;
} }
); );
in in

View File

@ -5,7 +5,6 @@
}: }:
let let
pkgs = mkpkgs inputs.nixpkgs; pkgs = mkpkgs inputs.nixpkgs;
pkgsU = mkpkgs inputs.nixpkgs-unstable;
in in
_final: prev: { _final: prev: {
nautilus = prev.nautilus.overrideAttrs (old: { nautilus = prev.nautilus.overrideAttrs (old: {
@ -51,5 +50,4 @@ _final: prev: {
withVencord = true; withVencord = true;
withOpenASAR = true; withOpenASAR = true;
}; };
inherit (pkgsU.python3.withPackages) qbittorrent-api;
} }