unstable yt-dlp
This commit is contained in:
@@ -7,37 +7,36 @@ let
|
|||||||
25152 # ssh
|
25152 # ssh
|
||||||
49494 # gerbera
|
49494 # gerbera
|
||||||
];
|
];
|
||||||
open_firewall_port_ranges = [
|
open_firewall_port_ranges = [{
|
||||||
{ from = 1714; to = 1764; } # kdeconnect
|
from = 1714;
|
||||||
|
to = 1764;
|
||||||
|
} # kdeconnect
|
||||||
];
|
];
|
||||||
VERSION = "23.05";
|
VERSION = "23.05";
|
||||||
# "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
# "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||||
unstable_tarball = builtins.fetchTarball
|
unstable_tarball =
|
||||||
https://github.com/nixos/nixpkgs/tarball/master;
|
builtins.fetchTarball "https://github.com/nixos/nixpkgs/tarball/master";
|
||||||
unstable = import unstable_tarball {
|
unstable = import unstable_tarball { config = config.nixpkgs.config; };
|
||||||
config = config.nixpkgs.config;
|
nix-gaming = import (builtins.fetchTarball
|
||||||
};
|
"https://github.com/fufexan/nix-gaming/archive/master.tar.gz");
|
||||||
nix-gaming = import (builtins.fetchTarball "https://github.com/fufexan/nix-gaming/archive/master.tar.gz");
|
jawz_nextcloud_scrapsync = pkgs.writeScriptBin "nextcloud_scrapsync"
|
||||||
jawz_nextcloud_scrapsync = pkgs.writeScriptBin
|
(builtins.readFile ./scripts/nextcloud_scrapsync.sh);
|
||||||
"nextcloud_scrapsync" (builtins.readFile ./scripts/nextcloud_scrapsync.sh);
|
jawz_manage_library = pkgs.writeScriptBin "manage_library"
|
||||||
jawz_manage_library = pkgs.writeScriptBin
|
(builtins.readFile ./scripts/manage_library.sh);
|
||||||
"manage_library" (builtins.readFile ./scripts/manage_library.sh);
|
jawz_ffmpreg =
|
||||||
jawz_ffmpreg = pkgs.writeScriptBin
|
pkgs.writeScriptBin "ffmpreg" (builtins.readFile ./scripts/ffmpreg.sh);
|
||||||
"ffmpreg" (builtins.readFile ./scripts/ffmpreg.sh);
|
jawz_ffmpeg4discord = pkgs.writeScriptBin "ffmpeg4discord"
|
||||||
jawz_ffmpeg4discord = pkgs.writeScriptBin
|
(builtins.readFile ./scripts/ffmpeg4discord.py);
|
||||||
"ffmpeg4discord" (builtins.readFile ./scripts/ffmpeg4discord.py);
|
jawz_chat-dl =
|
||||||
jawz_chat-dl = pkgs.writeScriptBin
|
pkgs.writeScriptBin "chat-dl" (builtins.readFile ./scripts/chat-dl.sh);
|
||||||
"chat-dl" (builtins.readFile ./scripts/chat-dl.sh);
|
jawz_tasks =
|
||||||
jawz_tasks = pkgs.writeScriptBin
|
pkgs.writeScriptBin "tasks" (builtins.readFile ./scripts/tasks.sh);
|
||||||
"tasks" (builtins.readFile ./scripts/tasks.sh);
|
jawz_split_dir =
|
||||||
jawz_split_dir = pkgs.writeScriptBin
|
pkgs.writeScriptBin "split_dir" (builtins.readFile ./scripts/split_dir.sh);
|
||||||
"split_dir" (builtins.readFile ./scripts/split_dir.sh);
|
jawz_pika_list =
|
||||||
jawz_pika_list = pkgs.writeScriptBin
|
pkgs.writeScriptBin "pika_list" (builtins.readFile ./scripts/pika_list.sh);
|
||||||
"pika_list" (builtins.readFile ./scripts/pika_list.sh);
|
jawz_run = pkgs.writeScriptBin "run" (builtins.readFile ./scripts/run.sh);
|
||||||
jawz_run = pkgs.writeScriptBin
|
in { # Remember to close this bracket at the end of the document
|
||||||
"run" (builtins.readFile ./scripts/run.sh);
|
|
||||||
in
|
|
||||||
{ # Remember to close this bracket at the end of the document
|
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
@@ -54,9 +53,7 @@ time.timeZone = "America/Mexico_City";
|
|||||||
|
|
||||||
i18n = {
|
i18n = {
|
||||||
defaultLocale = "en_CA.UTF-8";
|
defaultLocale = "en_CA.UTF-8";
|
||||||
extraLocaleSettings = {
|
extraLocaleSettings = { LC_MONETARY = "es_MX.UTF-8"; };
|
||||||
LC_MONETARY = "es_MX.UTF-8";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
console = {
|
console = {
|
||||||
font = "Lat2-Terminus16";
|
font = "Lat2-Terminus16";
|
||||||
@@ -82,8 +79,7 @@ environment.gnome.excludePackages = (with pkgs; [
|
|||||||
gnome-connections
|
gnome-connections
|
||||||
# gnome-shell-extensions
|
# gnome-shell-extensions
|
||||||
baobab
|
baobab
|
||||||
])
|
]) ++ (with pkgs.gnome; [
|
||||||
++ (with pkgs.gnome; [
|
|
||||||
# totem
|
# totem
|
||||||
gedit
|
gedit
|
||||||
gnome-music
|
gnome-music
|
||||||
@@ -130,16 +126,16 @@ security.sudo = {
|
|||||||
# noPass = true;
|
# noPass = true;
|
||||||
# }];
|
# }];
|
||||||
|
|
||||||
nixpkgs.config = {
|
nixpkgs.config = { allowUnfree = true; };
|
||||||
allowUnfree = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
users.users.jawz = {
|
users.users.jawz = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" "networkmanager" "docker" "scanner" "lp" ];
|
extraGroups = [ "wheel" "networkmanager" "docker" "scanner" "lp" ];
|
||||||
initialPassword = "password";
|
initialPassword = "password";
|
||||||
openssh = {
|
openssh = {
|
||||||
authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB5GaQM4N+yGAByibOFQOBVMV/6TjOfaGIP+NunMiK76 gpodeacero\cdreyes@100CDREYES" ];
|
authorizedKeys.keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB5GaQM4N+yGAByibOFQOBVMV/6TjOfaGIP+NunMiK76 gpodeacerocdreyes@100CDREYES"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
packages = (with pkgs; [
|
packages = (with pkgs; [
|
||||||
|
|
||||||
@@ -214,7 +210,7 @@ nicotine-plus # remember Ares?
|
|||||||
warp # never used, but supposedly cool for sharing files
|
warp # never used, but supposedly cool for sharing files
|
||||||
HentaiAtHome # uh-oh
|
HentaiAtHome # uh-oh
|
||||||
|
|
||||||
yt-dlp # downloads videos from most video websites
|
unstable.yt-dlp # downloads videos from most video websites
|
||||||
unstable.gallery-dl # similar to yt-dlp but for most image gallery websites
|
unstable.gallery-dl # similar to yt-dlp but for most image gallery websites
|
||||||
gdu # disk-space utility, somewhat useful
|
gdu # disk-space utility, somewhat useful
|
||||||
du-dust # rusty du
|
du-dust # rusty du
|
||||||
@@ -293,15 +289,21 @@ hunspellDicts.en_CA
|
|||||||
adw-gtk3
|
adw-gtk3
|
||||||
# gradience # theme customizer, allows you to modify adw-gtk3 themes
|
# gradience # theme customizer, allows you to modify adw-gtk3 themes
|
||||||
gnome.gnome-tweaks # tweaks for the gnome desktop environment
|
gnome.gnome-tweaks # tweaks for the gnome desktop environment
|
||||||
|
qgnomeplatform-qt6
|
||||||
|
|
||||||
# Fonts
|
# Fonts
|
||||||
(nerdfonts.override {
|
(nerdfonts.override {
|
||||||
fonts = [ "Agave" "CascadiaCode" "SourceCodePro" "Ubuntu" "FiraCode" "Iosevka" ];
|
fonts = [
|
||||||
|
"Agave"
|
||||||
|
"CascadiaCode"
|
||||||
|
"SourceCodePro"
|
||||||
|
"Ubuntu"
|
||||||
|
"FiraCode"
|
||||||
|
"Iosevka"
|
||||||
|
];
|
||||||
})
|
})
|
||||||
symbola
|
symbola
|
||||||
(papirus-icon-theme.override {
|
(papirus-icon-theme.override { color = "adwaita"; })
|
||||||
color = "adwaita";
|
|
||||||
})
|
|
||||||
|
|
||||||
]) ++ (with pkgs.python3Packages; [
|
]) ++ (with pkgs.python3Packages; [
|
||||||
flake8 # wraper for pyflakes, pycodestyle and mccabe
|
flake8 # wraper for pyflakes, pycodestyle and mccabe
|
||||||
@@ -319,8 +321,7 @@ symbola
|
|||||||
src = ./scripts/download/.;
|
src = ./scripts/download/.;
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
buildInputs = [ setuptools ];
|
buildInputs = [ setuptools ];
|
||||||
propagatedBuildInputs =
|
propagatedBuildInputs = [ pyyaml types-pyyaml ];
|
||||||
[ pyyaml types-pyyaml ];
|
|
||||||
})
|
})
|
||||||
(buildPythonApplication rec {
|
(buildPythonApplication rec {
|
||||||
pname = "ffpb";
|
pname = "ffpb";
|
||||||
@@ -331,8 +332,7 @@ symbola
|
|||||||
};
|
};
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
buildInputs = [ setuptools ];
|
buildInputs = [ setuptools ];
|
||||||
propagatedBuildInputs =
|
propagatedBuildInputs = [ tqdm ];
|
||||||
[ tqdm ];
|
|
||||||
})
|
})
|
||||||
|
|
||||||
]) ++ (with pkgs.bat-extras; [
|
]) ++ (with pkgs.bat-extras; [
|
||||||
@@ -363,7 +363,8 @@ symbola
|
|||||||
markdownlint-cli # Linter
|
markdownlint-cli # Linter
|
||||||
prettier # Linter
|
prettier # Linter
|
||||||
pnpm # Package manager
|
pnpm # Package manager
|
||||||
]); }; # <--- end of package list
|
]);
|
||||||
|
}; # <--- end of package list
|
||||||
|
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fontconfig.enable = true;
|
||||||
|
|
||||||
@@ -379,15 +380,18 @@ programs.bash = {
|
|||||||
historyFile = "\${XDG_STATE_HOME}/bash/history";
|
historyFile = "\${XDG_STATE_HOME}/bash/history";
|
||||||
historyControl = [ "erasedups" ];
|
historyControl = [ "erasedups" ];
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
ls = "exa --icons --group-directories-first --no-permissions --no-user --no-time";
|
ls =
|
||||||
|
"exa --icons --group-directories-first --no-permissions --no-user --no-time";
|
||||||
edit = "emacsclient -t";
|
edit = "emacsclient -t";
|
||||||
comic = "download -u jawz -i $(cat $LC | fzf --multi --exact -i)";
|
comic = "download -u jawz -i $(cat $LC | fzf --multi --exact -i)";
|
||||||
gallery = "download -u jawz -i $(cat $LW | fzf --multi --exact -i)";
|
gallery = "download -u jawz -i $(cat $LW | fzf --multi --exact -i)";
|
||||||
open_gallery = "cd /mnt/disk2/scrapping/JawZ/gallery-dl && xdg-open $(fd . ./ Husbands -tdirectory -d 1 | fzf -i)";
|
open_gallery =
|
||||||
unique_extensions = "fd -tf | rev | cut -d. -f1 | rev | tr '[:upper:]' '[:lower:]' | sort | uniq --count | sort -rn";
|
"cd /mnt/disk2/scrapping/JawZ/gallery-dl && xdg-open $(fd . ./ Husbands -tdirectory -d 1 | fzf -i)";
|
||||||
|
unique_extensions =
|
||||||
|
"fd -tf | rev | cut -d. -f1 | rev | tr '[:upper:]' '[:lower:]' | sort | uniq --count | sort -rn";
|
||||||
cp = "cp -i";
|
cp = "cp -i";
|
||||||
mv = "mv -i";
|
mv = "mv -i";
|
||||||
mkcd = "mkdir -pv \"$1\" && cd \"$1\" || exit";
|
mkcd = ''mkdir -pv "$1" && cd "$1" || exit'';
|
||||||
mkdir = "mkdir -p";
|
mkdir = "mkdir -p";
|
||||||
rm = "trash";
|
rm = "trash";
|
||||||
".." = "cd ..";
|
".." = "cd ..";
|
||||||
@@ -442,7 +446,8 @@ programs = {
|
|||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
pager = "less -FR";
|
pager = "less -FR";
|
||||||
theme = "base16"; };
|
theme = "base16";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -471,7 +476,8 @@ xdg = {
|
|||||||
};
|
};
|
||||||
configFile = {
|
configFile = {
|
||||||
"wgetrc".source = ./dotfiles/wget/wgetrc;
|
"wgetrc".source = ./dotfiles/wget/wgetrc;
|
||||||
"configstore/update-notifier-npm-check.json".source = ./dotfiles/npm/update-notifier-npm-check.json;
|
"configstore/update-notifier-npm-check.json".source =
|
||||||
|
./dotfiles/npm/update-notifier-npm-check.json;
|
||||||
"npm/npmrc".source = ./dotfiles/npm/npmrc;
|
"npm/npmrc".source = ./dotfiles/npm/npmrc;
|
||||||
"gallery-dl/config.json".source = ./dotfiles/gallery-dl/config.json;
|
"gallery-dl/config.json".source = ./dotfiles/gallery-dl/config.json;
|
||||||
"htop/htoprc".source = ./dotfiles/htop/htoprc;
|
"htop/htoprc".source = ./dotfiles/htop/htoprc;
|
||||||
@@ -560,9 +566,7 @@ snapraid = {
|
|||||||
olderThan = 10;
|
olderThan = 10;
|
||||||
interval = "4:00";
|
interval = "4:00";
|
||||||
};
|
};
|
||||||
parityFiles = [
|
parityFiles = [ "/mnt/parity/snapraid.parity" ];
|
||||||
"/mnt/parity/snapraid.parity"
|
|
||||||
];
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
autosave 5000
|
autosave 5000
|
||||||
'';
|
'';
|
||||||
@@ -597,9 +601,7 @@ programs = {
|
|||||||
enable = true;
|
enable = true;
|
||||||
enableSSHSupport = true;
|
enableSSHSupport = true;
|
||||||
};
|
};
|
||||||
geary = {
|
geary = { enable = true; };
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
steam = {
|
steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
remotePlay.openFirewall = true;
|
remotePlay.openFirewall = true;
|
||||||
@@ -617,11 +619,7 @@ services = {
|
|||||||
fstrim.enable = true;
|
fstrim.enable = true;
|
||||||
btrfs.autoScrub = {
|
btrfs.autoScrub = {
|
||||||
enable = true;
|
enable = true;
|
||||||
fileSystems = [
|
fileSystems = [ "/" "/mnt/disk1" "/mnt/disk2" ];
|
||||||
"/"
|
|
||||||
"/mnt/disk1"
|
|
||||||
"/mnt/disk2"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
openssh = {
|
openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -631,12 +629,10 @@ services = {
|
|||||||
KbdInteractiveAuthentication = false;
|
KbdInteractiveAuthentication = false;
|
||||||
};
|
};
|
||||||
startWhenNeeded = true;
|
startWhenNeeded = true;
|
||||||
listenAddresses = [
|
listenAddresses = [{
|
||||||
{
|
|
||||||
addr = "0.0.0.0";
|
addr = "0.0.0.0";
|
||||||
port = 25152;
|
port = 25152;
|
||||||
}
|
}];
|
||||||
];
|
|
||||||
};
|
};
|
||||||
emacs = {
|
emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -656,23 +652,19 @@ systemd.services = {
|
|||||||
environment = {
|
environment = {
|
||||||
FILE = "/home/jawz/Development/Docker/docker-compose.yml";
|
FILE = "/home/jawz/Development/Docker/docker-compose.yml";
|
||||||
};
|
};
|
||||||
path = [
|
path = [ pkgs.docker-compose ];
|
||||||
pkgs.docker-compose
|
|
||||||
];
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = 30;
|
RestartSec = 30;
|
||||||
ExecStart = "${pkgs.docker-compose}/bin/docker-compose -f \${FILE} up --remove-orphans";
|
ExecStart =
|
||||||
|
"${pkgs.docker-compose}/bin/docker-compose -f \${FILE} up --remove-orphans";
|
||||||
ExecStop = "${pkgs.docker-compose}/bin/docker-compose -f \${FILE} down";
|
ExecStop = "${pkgs.docker-compose}/bin/docker-compose -f \${FILE} down";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"nextcloud_scrapsync" = {
|
"nextcloud_scrapsync" = {
|
||||||
description = "Sync scrapped files with nextcloud";
|
description = "Sync scrapped files with nextcloud";
|
||||||
wantedBy = [ "default.target" ];
|
wantedBy = [ "default.target" ];
|
||||||
path = [
|
path = [ pkgs.bash jawz_nextcloud_scrapsync ];
|
||||||
pkgs.bash
|
|
||||||
jawz_nextcloud_scrapsync
|
|
||||||
];
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
RestartSec = 30;
|
RestartSec = 30;
|
||||||
ExecStart = "${jawz_nextcloud_scrapsync}/bin/nextcloud_scrapsync";
|
ExecStart = "${jawz_nextcloud_scrapsync}/bin/nextcloud_scrapsync";
|
||||||
@@ -702,9 +694,7 @@ systemd.user.services = {
|
|||||||
restartIfChanged = true;
|
restartIfChanged = true;
|
||||||
description = "Run hentai@home server";
|
description = "Run hentai@home server";
|
||||||
wantedBy = [ "default.target" ];
|
wantedBy = [ "default.target" ];
|
||||||
path = [
|
path = [ pkgs.HentaiAtHome ];
|
||||||
pkgs.HentaiAtHome
|
|
||||||
];
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = 30;
|
RestartSec = 30;
|
||||||
@@ -717,11 +707,7 @@ systemd.user.services = {
|
|||||||
restartIfChanged = true;
|
restartIfChanged = true;
|
||||||
description = "Run the manage library bash script";
|
description = "Run the manage library bash script";
|
||||||
wantedBy = [ "default.target" ];
|
wantedBy = [ "default.target" ];
|
||||||
path = [
|
path = [ pkgs.bash pkgs.nix jawz_manage_library ];
|
||||||
pkgs.bash
|
|
||||||
pkgs.nix
|
|
||||||
jawz_manage_library
|
|
||||||
];
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = 30;
|
RestartSec = 30;
|
||||||
@@ -732,11 +718,7 @@ systemd.user.services = {
|
|||||||
restartIfChanged = true;
|
restartIfChanged = true;
|
||||||
description = "Run a tasks script which keeps a lot of things organized";
|
description = "Run a tasks script which keeps a lot of things organized";
|
||||||
wantedBy = [ "default.target" ];
|
wantedBy = [ "default.target" ];
|
||||||
path = [
|
path = [ pkgs.bash pkgs.nix jawz_tasks ];
|
||||||
pkgs.bash
|
|
||||||
pkgs.nix
|
|
||||||
jawz_tasks
|
|
||||||
];
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = 30;
|
RestartSec = 30;
|
||||||
@@ -749,9 +731,7 @@ systemd.user.timers = {
|
|||||||
enable = true;
|
enable = true;
|
||||||
description = "Run a tasks script which keeps a lot of things organized";
|
description = "Run a tasks script which keeps a lot of things organized";
|
||||||
wantedBy = [ "timers.target" ];
|
wantedBy = [ "timers.target" ];
|
||||||
timerConfig = {
|
timerConfig = { OnCalendar = "*:0/10"; };
|
||||||
OnCalendar = "*:0/10";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -380,7 +380,7 @@ HentaiAtHome # uh-oh
|
|||||||
** COMMAND-LINE PACKAGES
|
** COMMAND-LINE PACKAGES
|
||||||
|
|
||||||
#+begin_src nix
|
#+begin_src nix
|
||||||
yt-dlp # downloads videos from most video websites
|
unstable.yt-dlp # downloads videos from most video websites
|
||||||
unstable.gallery-dl # similar to yt-dlp but for most image gallery websites
|
unstable.gallery-dl # similar to yt-dlp but for most image gallery websites
|
||||||
gdu # disk-space utility, somewhat useful
|
gdu # disk-space utility, somewhat useful
|
||||||
du-dust # rusty du
|
du-dust # rusty du
|
||||||
|
|||||||
Reference in New Issue
Block a user