Compare commits
5 commits
caeae2ace2
...
9ee45a53fc
Author | SHA1 | Date | |
---|---|---|---|
Dmitry Voronin | 9ee45a53fc | ||
Dmitry Voronin | 94d5059c98 | ||
Dmitry Voronin | 5d23a8d9bb | ||
Dmitry Voronin | 7f2133728a | ||
Dmitry Voronin | 550a9cb989 |
|
@ -1,8 +1,6 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
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() {
|
||||||
|
@ -28,7 +26,7 @@
|
||||||
[[ -f "Src.txt" ]] || echo "''${target}" > Src.txt
|
[[ -f "Src.txt" ]] || echo "''${target}" > Src.txt
|
||||||
|
|
||||||
# Download [LINK] content.
|
# Download [LINK] content.
|
||||||
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
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
# Temporary fix for vk downloads.
|
# Temporary fix for vk downloads.
|
||||||
|
|
|
@ -1,5 +1,32 @@
|
||||||
{ 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);
|
||||||
|
@ -53,6 +80,18 @@ 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 = ''
|
||||||
|
@ -101,19 +140,7 @@ in
|
||||||
inherit extraConfig userChrome userContent;
|
inherit extraConfig userChrome userContent;
|
||||||
};
|
};
|
||||||
policies = {
|
policies = {
|
||||||
ManagedBookmarks = [
|
ManagedBookmarks = [ { toplevel_name = "Pin"; } ] ++ bookmarks;
|
||||||
{ 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.
|
||||||
|
@ -121,18 +148,7 @@ in
|
||||||
install_sources = [ "*" ];
|
install_sources = [ "*" ];
|
||||||
installation_mode = "blocked";
|
installation_mode = "blocked";
|
||||||
};
|
};
|
||||||
"addon@darkreader.org" = mkExtension "https://addons.mozilla.org/firefox/downloads/latest/darkreader/latest.xpi";
|
} // extensions;
|
||||||
"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";
|
||||||
|
|
|
@ -41,8 +41,18 @@
|
||||||
"rutrk.org"
|
"rutrk.org"
|
||||||
"t-ru.org"
|
"t-ru.org"
|
||||||
"medium.com"
|
"medium.com"
|
||||||
"quora.com"
|
"dis.gd"
|
||||||
"quoracdn.net"
|
"discord.co"
|
||||||
|
"discord.com"
|
||||||
|
"discord.dev"
|
||||||
|
"discord.gg"
|
||||||
|
"discord.gift"
|
||||||
|
"discord.media"
|
||||||
|
"discord.new"
|
||||||
|
"discordapp.com"
|
||||||
|
"discordapp.net"
|
||||||
|
"discordcdn.com"
|
||||||
|
"discordstatus.com"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -43,6 +43,8 @@ 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.
|
||||||
|
@ -54,8 +56,6 @@ in
|
||||||
"video/*" = "mpv.desktop";
|
"video/*" = "mpv.desktop";
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = package.common;
|
|
||||||
|
|
||||||
services.gvfs.enable = true;
|
services.gvfs.enable = true;
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -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
|
btop # System monitoring.
|
||||||
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
|
curl # Http client.
|
||||||
ddrescue
|
ddrescue # Data rescue extractor.
|
||||||
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
|
gnutar # Tar.
|
||||||
gzip
|
gzip # Fast compression.
|
||||||
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
|
nmap # Network scanning.
|
||||||
openssh
|
openssh # Ssh client.
|
||||||
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
|
xray # Proxy.
|
||||||
xz # Archive and compression tools.
|
xz # Archive and compression tools.
|
||||||
yazi
|
yazi # File manager.
|
||||||
yt-dlp # Video downloader.
|
yt-dlp # Video downloader.
|
||||||
zapret # FRKN.
|
zapret # FRKN.
|
||||||
zip
|
zip # Zip utility.
|
||||||
zmap # Network analyzer.
|
zmap # Network analyzer.
|
||||||
|
|
||||||
# (pkgs.callPackage ./ytdlp {})
|
# (pkgs.callPackage ./ytdlp {}) # Youtube downloader bin package.
|
||||||
(pkgs.callPackage ./yamusicdownload { })
|
(pkgs.callPackage ./yamusicdownload { }) # Yandex music downloader.
|
||||||
];
|
];
|
||||||
|
|
||||||
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
|
grim # Screenshots.
|
||||||
slurp
|
slurp # Screen selection.
|
||||||
wf-recorder
|
wf-recorder # Screen recording.
|
||||||
swappy # Screenshot.
|
swappy # Screenshot editing.
|
||||||
mako # Notification system.
|
mako # Notification system.
|
||||||
networkmanagerapplet # Internet configuration.
|
networkmanagerapplet # Internet configuration.
|
||||||
pamixer
|
pamixer # Sound controls.
|
||||||
pavucontrol
|
pavucontrol # Sound applet.
|
||||||
pulseaudio # Audio.
|
pulseaudio # Audio.
|
||||||
playerctl # Multimedia controls.
|
playerctl # Multimedia controls.
|
||||||
sway
|
sway # Sway WM.
|
||||||
waybar # Sway WM.
|
waybar # Sway bar.
|
||||||
|
|
||||||
(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
|
steam # Gaming platform.
|
||||||
bottles
|
bottles # GUI for Wine.
|
||||||
dxvk
|
dxvk # Directx to Vulkan.
|
||||||
gamescope
|
gamescope # Compositor for Steam.
|
||||||
mangohud
|
mangohud # Realtime stats overlay.
|
||||||
vkd3d
|
vkd3d # Directx to Vulkan.
|
||||||
wine64 # Gaming!
|
wine64 # Run Windows software on Linux.
|
||||||
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
|
android-studio # I hate you.
|
||||||
jetbrains.idea-community
|
jetbrains.idea-community # Okay, but LSP would be better.
|
||||||
];
|
];
|
||||||
|
|
||||||
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
|
cbonsai # Draw trees.
|
||||||
cmatrix # CLI Screensavers.
|
cmatrix # CLI Screensavers.
|
||||||
cowsay
|
cowsay # Cow quotes.
|
||||||
lolcat # CLI funni.
|
lolcat # CLI funni colors.
|
||||||
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.
|
||||||
|
|
Loading…
Reference in a new issue