mirror of
https://github.com/deltathetawastaken/dotfiles.git
synced 2025-12-06 07:16:37 +03:00
chromium declarative
This commit is contained in:
parent
2a780917ed
commit
19452b4566
|
|
@ -11,7 +11,7 @@ let
|
|||
in {
|
||||
users.users.delta.packages = (with pkgs; [
|
||||
git
|
||||
chromium
|
||||
#chromium
|
||||
wl-clipboard
|
||||
wl-clipboard-x11
|
||||
(callPackage "${self}/derivations/audiorelay.nix" { })
|
||||
|
|
@ -46,6 +46,7 @@ in {
|
|||
fishPlugins.done
|
||||
monero-gui
|
||||
inputs.telegram-desktop-patched.packages.${pkgs.system}.default
|
||||
translate-shell
|
||||
]);
|
||||
|
||||
programs.firefox = {
|
||||
|
|
@ -63,6 +64,9 @@ in {
|
|||
ProviderURL = "https://mozilla.cloudflare-dns.com/dns-query";
|
||||
Locked = true;
|
||||
};
|
||||
languagePacks = [
|
||||
"ru"
|
||||
];
|
||||
|
||||
Preferences = {
|
||||
"ui.key.menuAccessKeyFocuses" = lock-false;
|
||||
|
|
@ -77,6 +81,7 @@ in {
|
|||
Status = "Locked";
|
||||
};
|
||||
"browser.tabs.firefox-view" = lock-false;
|
||||
"browser.startup.homepage" = "http://ifconfig.co/json";
|
||||
};
|
||||
|
||||
# https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265/17
|
||||
|
|
@ -91,7 +96,16 @@ in {
|
|||
installation_mode = "normal_installed";
|
||||
};
|
||||
};
|
||||
extension_custom = link: uuid: {
|
||||
name = uuid;
|
||||
value = {
|
||||
install_url =
|
||||
"${link}";
|
||||
installation_mode = "normal_installed";
|
||||
};
|
||||
};
|
||||
in listToAttrs [
|
||||
(extension_custom "https://tridactyl.cmcaine.co.uk/betas/tridactyl-latest.xpi" "{ec2a8a42-bef4-4036-96df-7f1423cf64ab}")
|
||||
(extension "ublock-origin" "uBlock0@raymondhill.net")
|
||||
(extension "container-proxy" "contaner-proxy@bekh-ivanov.me")
|
||||
(extension "clearurls" "{74145f27-f039-47ce-a470-a662b129930a}")
|
||||
|
|
@ -117,6 +131,13 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
#programs.chromium = {
|
||||
# enable = true;
|
||||
# extensions = [
|
||||
# "cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin
|
||||
# ];
|
||||
#};
|
||||
|
||||
programs.thunar.enable = true;
|
||||
programs.xfconf.enable = true;
|
||||
programs.virt-manager.enable = true;
|
||||
|
|
@ -126,4 +147,19 @@ in {
|
|||
thunar-archive-plugin
|
||||
thunar-volman
|
||||
];
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
|
||||
shellAliases = {
|
||||
fru = "trans ru:en";
|
||||
fen = "trans en:ru";
|
||||
icat = "kitten icat";
|
||||
};
|
||||
shellInit = ''
|
||||
set -U __done_kitty_remote_control 1
|
||||
set -U __done_kitty_remote_control_password "kitty-notification-password-fish"
|
||||
set -U __done_notification_command 'notify-send --icon=kitty --app-name=kitty \$title \$argv[1] && '
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -123,4 +123,41 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs.chromium = {
|
||||
enable = true;
|
||||
package = pkgs.chromium;
|
||||
#"ifconfig.co/json"
|
||||
commandLineArgs = [
|
||||
"--ignore-gpu-blocklist"
|
||||
"--disable-gpu-driver-bug-workarounds"
|
||||
#"--use-gl=egl"
|
||||
"--enable-gpu-rasterization"
|
||||
"--enable-zero-copy"
|
||||
"--enable-features=VaapiVideoDecodeLinuxGL,VaapiVideoDecoder,VaapiVideoEncoder,CanvasOopRasterization,UseOzonePlatform"
|
||||
#"--disable-features=UseChromeOSDirectVideoDecoder"
|
||||
#"--use-angle=vulkan"
|
||||
#"--enable-unsafe-webgpu"
|
||||
"--enable-features=Vulkan"
|
||||
"--enable-features=TouchpadOverscrollHistoryNavigation"
|
||||
];
|
||||
dictionaries = [
|
||||
pkgs.hunspellDictsChromium.en_US
|
||||
];
|
||||
extensions = [
|
||||
{ id = "cjpalhdlnbpafiamejdnhcphjbkeiagm"; } # ublock origin
|
||||
{ id = "dbepggeogbaibhgnhhndojpepiihcmeb"; } # vimium
|
||||
{
|
||||
id = "dcpihecpambacapedldabdbpakmachpb"; # bypasss paywalls
|
||||
updateUrl = "https://raw.githubusercontent.com/iamadamdev/bypass-paywalls-chrome/master/src/updates/updates.xml";
|
||||
}
|
||||
#{
|
||||
# id = "aaaaaaaaaabbbbbbbbbbcccccccccc";
|
||||
# crxPath = "/home/share/extension.crx";
|
||||
# version = "1.0";
|
||||
#}
|
||||
];
|
||||
};
|
||||
|
||||
#programs.dircolors.enable = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue