download tweaks, - fooyin, flake updt, modules

This commit is contained in:
2024-11-01 17:53:27 -06:00
parent 5d7fb596d2
commit b43d2f5a31
6 changed files with 59 additions and 76 deletions

View File

@@ -12,23 +12,7 @@
};
config =
let
download =
with pkgs;
python3Packages.buildPythonApplication {
pname = "download";
version = "2.5";
src = ../../scripts/download/.;
build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
pyyaml
types-pyyaml
yt-dlp
];
propagatedBuildInputs = [
gallery-dl
ffmpeg
];
};
download = pkgs.callPackage ../../pkgs/download/default.nix { };
in
{
home-manager.users.jawz = {
@@ -36,7 +20,7 @@
services.lorri.enable = true;
programs.bash = {
shellAliases = {
dl = "download -u jawz -i";
dl = "${download}/bin/download -u jawz -i";
comic = ''dl "$(cat "$LC" | fzf --multi --exact -i)"'';
gallery = ''dl "$(cat "$LW" | fzf --multi --exact -i)"'';
};
@@ -57,7 +41,6 @@
wantedBy = [ "default.target" ];
path = [
pkgs.bash
download
];
serviceConfig = {
TimeoutStartSec = 2000;