Compare commits

..

No commits in common. "9ee45a53fc441fb0bcc08bf8730a54a43b163444" and "caeae2ace22749d404bc3a5e0395095af168f449" have entirely different histories.

5 changed files with 64 additions and 88 deletions

View file

@ -1,6 +1,8 @@
{ ... }: { ... }:
{ {
text = '' text = ''
export VDL_PROXY=""
# Download video from URL. When no `[LINK]` specified, it tries to update previously downloaded link. # Download video from URL. When no `[LINK]` specified, it tries to update previously downloaded link.
# Usage: vdl [LINK] # Usage: vdl [LINK]
function vdl() { function vdl() {
@ -26,7 +28,7 @@
[[ -f "Src.txt" ]] || echo "''${target}" > Src.txt [[ -f "Src.txt" ]] || echo "''${target}" > Src.txt
# Download [LINK] content. # Download [LINK] content.
yt-dlp -S 'res:1080,codec:av1,codec:vp9,codec:h264' --download-archive Index.txt --embed-thumbnail --embed-subs --write-auto-subs --embed-metadata --merge-output-format mkv -cio '%(playlist_index)000006d_%(id)s.%(ext)s' ''${target} # || _vdl_retry yt-dlp ''${VDL_PROXY} -S 'res:1080,codec:av1,codec:vp9,codec:h264' --download-archive Index.txt --embed-thumbnail --embed-subs --write-auto-subs --embed-metadata --merge-output-format mkv -cio '%(playlist_index)000006d_%(id)s.%(ext)s' ''${target} # || _vdl_retry
} }
# Temporary fix for vk downloads. # Temporary fix for vk downloads.

View file

@ -1,32 +1,5 @@
{ pkgs, config, ... }: { pkgs, config, ... }:
let let
bookmarks = [
(mkBookmark "Dashboard" "https://home.voronind.com")
(mkBookmark "Watch" "https://watch.voronind.com")
(mkBookmark "Telegram" "https://web.telegram.org/a")
(mkBookmark "Mail" "https://mail.voronind.com")
(mkBookmark "WorkMail" "https://mail.fsight.ru")
(mkBookmark "Git" "https://git.voronind.com")
(mkBookmark "WorkGit" "https://git.fmp.fsight.world")
(mkBookmark "WorkBoard" "https://support.fsight.ru")
(mkBookmark "Hass" "https://iot.voronind.com")
(mkBookmark "Cloud" "https://cloud.voronind.com")
];
extensions = {
"addon@darkreader.org" = mkExtension "https://addons.mozilla.org/firefox/downloads/latest/darkreader/latest.xpi";
"cliget@zaidabdulla.com" = mkExtension "https://addons.mozilla.org/firefox/downloads/latest/cliget/latest.xpi";
"foxyproxy@eric.h.jung" = mkExtension "https://addons.mozilla.org/firefox/downloads/latest/foxyproxy-standard/latest.xpi";
"uBlock0@raymondhill.net" = mkExtension "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
"{446900e4-71c2-419f-a6a7-df9c091e268b}" = mkExtension "https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager/latest.xpi";
"{a6c4a591-f1b2-4f03-b3ff-767e5bedf4e7}" = mkExtension "https://addons.mozilla.org/firefox/downloads/latest/user-agent-string-switcher/latest.xpi";
"{d7742d87-e61d-4b78-b8a1-b469842139fa}" = mkExtension "https://addons.mozilla.org/firefox/downloads/latest/vimium-ff/latest.xpi";
"{e7625f06-e252-479d-ac7a-db68aeaff2cb}" = mkExtension "https://addons.mozilla.org/firefox/downloads/latest/togglefonts/latest.xpi";
# NOTE: This extension is helpful to find the required parameters for this config.
# Or find them yourself inside the `about:support`.
# "queryamoid@kaply.com" = mkExtension "https://github.com/mkaply/queryamoid/releases/download/v0.1/query_amo_addon_id-0.1-fx.xpi";
};
extraConfig = '' extraConfig = ''
// Bookmarks. // Bookmarks.
user_pref("browser.microsummary.enabled", true); user_pref("browser.microsummary.enabled", true);
@ -80,18 +53,6 @@ let
// Style. // Style.
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true); user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);
// Disable auto gain for the mic.
// user_pref("media.getusermedia.audio.processing.aec", 0);
// user_pref("media.getusermedia.audio.processing.aec.enabled", false);
// user_pref("media.getusermedia.audio.processing.agc", 0);
// user_pref("media.getusermedia.audio.processing.agc.enabled", false);
// user_pref("media.getusermedia.audio.processing.agc2.forced", false)
// user_pref("media.getusermedia.audio.processing.hpf.enabled", false);
// user_pref("media.getusermedia.audio.processing.noise", 0);
// user_pref("media.getusermedia.audio.processing.noise.enabled", false);
// user_pref("media.getusermedia.audio.processing.platform.enabled", false);
// user_pref("media.getusermedia.audio.processing.transient.enabled", false);
''; '';
userChrome = '' userChrome = ''
@ -140,7 +101,19 @@ in
inherit extraConfig userChrome userContent; inherit extraConfig userChrome userContent;
}; };
policies = { policies = {
ManagedBookmarks = [ { toplevel_name = "Pin"; } ] ++ bookmarks; ManagedBookmarks = [
{ toplevel_name = "Pin"; }
(mkBookmark "Dashboard" "https://home.voronind.com")
(mkBookmark "Watch" "https://watch.voronind.com")
(mkBookmark "Telegram" "https://web.telegram.org/a")
(mkBookmark "Mail" "https://mail.voronind.com")
(mkBookmark "WorkMail" "https://mail.fsight.ru")
(mkBookmark "Git" "https://git.voronind.com")
(mkBookmark "WorkGit" "https://git.fmp.fsight.world")
(mkBookmark "WorkBoard" "https://support.fsight.ru")
(mkBookmark "Hass" "https://iot.voronind.com")
(mkBookmark "Cloud" "https://cloud.voronind.com")
];
ExtensionUpdate = true; ExtensionUpdate = true;
ExtensionSettings = { ExtensionSettings = {
# Block extension installation outside of this config. # Block extension installation outside of this config.
@ -148,7 +121,18 @@ in
install_sources = [ "*" ]; install_sources = [ "*" ];
installation_mode = "blocked"; installation_mode = "blocked";
}; };
} // extensions; "addon@darkreader.org" = mkExtension "https://addons.mozilla.org/firefox/downloads/latest/darkreader/latest.xpi";
"cliget@zaidabdulla.com" = mkExtension "https://addons.mozilla.org/firefox/downloads/latest/cliget/latest.xpi";
"foxyproxy@eric.h.jung" = mkExtension "https://addons.mozilla.org/firefox/downloads/latest/foxyproxy-standard/latest.xpi";
"uBlock0@raymondhill.net" = mkExtension "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
"{446900e4-71c2-419f-a6a7-df9c091e268b}" = mkExtension "https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager/latest.xpi";
"{a6c4a591-f1b2-4f03-b3ff-767e5bedf4e7}" = mkExtension "https://addons.mozilla.org/firefox/downloads/latest/user-agent-string-switcher/latest.xpi";
"{d7742d87-e61d-4b78-b8a1-b469842139fa}" = mkExtension "https://addons.mozilla.org/firefox/downloads/latest/vimium-ff/latest.xpi";
"{e7625f06-e252-479d-ac7a-db68aeaff2cb}" = mkExtension "https://addons.mozilla.org/firefox/downloads/latest/togglefonts/latest.xpi";
# NOTE: This extension is helpful to find the required parameters for this config.
# Or find them yourself inside the `about:support`.
# "queryamoid@kaply.com" = mkExtension "https://github.com/mkaply/queryamoid/releases/download/v0.1/query_amo_addon_id-0.1-fx.xpi";
};
# NOTE: `firefox-esr` edition is required to change default search engine. # NOTE: `firefox-esr` edition is required to change default search engine.
SearchEngines = { SearchEngines = {
Default = "Searx"; Default = "Searx";

View file

@ -41,18 +41,8 @@
"rutrk.org" "rutrk.org"
"t-ru.org" "t-ru.org"
"medium.com" "medium.com"
"dis.gd" "quora.com"
"discord.co" "quoracdn.net"
"discord.com"
"discord.dev"
"discord.gg"
"discord.gift"
"discord.media"
"discord.new"
"discordapp.com"
"discordapp.net"
"discordcdn.com"
"discordstatus.com"
]; ];
}; };
}; };

View file

@ -43,8 +43,6 @@ in
# Common apps. # Common apps.
(mkIf cfg.common.enable { (mkIf cfg.common.enable {
environment.systemPackages = package.common;
xdg.mime.defaultApplications = { xdg.mime.defaultApplications = {
# Use `file -i file.txt` to find file mime type. # Use `file -i file.txt` to find file mime type.
# Use `xdg-mime query default "text/plain"` to find default app. # Use `xdg-mime query default "text/plain"` to find default app.
@ -56,6 +54,8 @@ in
"video/*" = "mpv.desktop"; "video/*" = "mpv.desktop";
}; };
environment.systemPackages = package.common;
services.gvfs.enable = true; services.gvfs.enable = true;
}) })

View file

@ -9,12 +9,12 @@
android-tools # Android adb tool. Can be used to connect to itself via wireless debugging. binwalk # Can analyze files for other files inside them. android-tools # Android adb tool. Can be used to connect to itself via wireless debugging. binwalk # Can analyze files for other files inside them.
bat # Pretty cat. bat # Pretty cat.
bridge-utils # Network bridges. bridge-utils # Network bridges.
btop # System monitoring. btop
chafa # CLI file manager. chafa # CLI file manager.
coreutils # UNIX Core utilities. coreutils # UNIX Core utilities.
cryptsetup # Filesystem encryption (LUKS). cryptsetup # Filesystem encryption (LUKS).
curl # Http client. curl
ddrescue # Data rescue extractor. ddrescue
diffutils # Diff tool. diffutils # Diff tool.
dnsutils # NS utilities. dnsutils # NS utilities.
exiftool # Image info. exiftool # Image info.
@ -29,8 +29,8 @@
gnugrep # Grep. gnugrep # Grep.
gnumake # Make. gnumake # Make.
gnused # Sed. gnused # Sed.
gnutar # Tar. gnutar
gzip # Fast compression. gzip
htop # System monitors. htop # System monitors.
imagemagick # Image converter and transformation tool. imagemagick # Image converter and transformation tool.
inetutils # Things like FTP. inetutils # Things like FTP.
@ -42,8 +42,8 @@
ltex-ls # Latex LSP for neovim spellcheck. ltex-ls # Latex LSP for neovim spellcheck.
man # App to read manuals. man # App to read manuals.
neovim # Text editor. neovim # Text editor.
nmap # Network scanning. nmap
openssh # Ssh client. openssh
parallel # Run programs in parallel. parallel # Run programs in parallel.
parted # CLI disk partition tool. parted # CLI disk partition tool.
pv # IO progress bar. pv # IO progress bar.
@ -64,34 +64,34 @@
ventoy # Boot multiple ISO/images from a single USB stick. ventoy # Boot multiple ISO/images from a single USB stick.
wcurl # CLI http client. wcurl # CLI http client.
wireguard-tools # Tools to work with Wireguard. wireguard-tools # Tools to work with Wireguard.
xray # Proxy. xray
xz # Archive and compression tools. xz # Archive and compression tools.
yazi # File manager. yazi
yt-dlp # Video downloader. yt-dlp # Video downloader.
zapret # FRKN. zapret # FRKN.
zip # Zip utility. zip
zmap # Network analyzer. zmap # Network analyzer.
# (pkgs.callPackage ./ytdlp {}) # Youtube downloader bin package. # (pkgs.callPackage ./ytdlp {})
(pkgs.callPackage ./yamusicdownload { }) # Yandex music downloader. (pkgs.callPackage ./yamusicdownload { })
]; ];
desktop = with pkgs; [ desktop = with pkgs; [
adwaita-icon-theme # GTK icons. adwaita-icon-theme # GTK icons.
foot # Terminal emulator. foot # Terminal emulator.
fuzzel # Application launcher. fuzzel # Application launcher.
grim # Screenshots. grim
slurp # Screen selection. slurp
wf-recorder # Screen recording. wf-recorder
swappy # Screenshot editing. swappy # Screenshot.
mako # Notification system. mako # Notification system.
networkmanagerapplet # Internet configuration. networkmanagerapplet # Internet configuration.
pamixer # Sound controls. pamixer
pavucontrol # Sound applet. pavucontrol
pulseaudio # Audio. pulseaudio # Audio.
playerctl # Multimedia controls. playerctl # Multimedia controls.
sway # Sway WM. sway
waybar # Sway bar. waybar # Sway WM.
(pkgs.callPackage ./swayscript args) (pkgs.callPackage ./swayscript args)
]; ];
@ -113,13 +113,13 @@
gaming = with pkgs; [ gaming = with pkgs; [
scanmem # Memory edit tool. scanmem # Memory edit tool.
steam # Gaming platform. steam
bottles # GUI for Wine. bottles
dxvk # Directx to Vulkan. dxvk
gamescope # Compositor for Steam. gamescope
mangohud # Realtime stats overlay. mangohud
vkd3d # Directx to Vulkan. vkd3d
wine64 # Run Windows software on Linux. wine64 # Gaming!
steam-run # Run games outside of Steam. steam-run # Run games outside of Steam.
]; ];
@ -130,8 +130,8 @@
]; ];
dev = with pkgs; [ dev = with pkgs; [
android-studio # I hate you. android-studio
jetbrains.idea-community # Okay, but LSP would be better. jetbrains.idea-community
]; ];
extra = with pkgs; [ extra = with pkgs; [
@ -139,10 +139,10 @@
appimage-run # Tool to run .AppImage files in NixOS. appimage-run # Tool to run .AppImage files in NixOS.
blanket # Sounds generator. blanket # Sounds generator.
calibre # Book library manager. calibre # Book library manager.
cbonsai # Draw trees. cbonsai
cmatrix # CLI Screensavers. cmatrix # CLI Screensavers.
cowsay # Cow quotes. cowsay
lolcat # CLI funni colors. lolcat # CLI funni.
gnome-font-viewer # Font viewer. gnome-font-viewer # Font viewer.
jamesdsp # Active audio processing. jamesdsp # Active audio processing.
p7zip # Weird archive tool. p7zip # Weird archive tool.