Add some chromium configs

This commit is contained in:
Evie Litherland-Smith 2023-07-11 08:30:29 +01:00
parent 7a52dff9eb
commit 4a0e3a440e
3 changed files with 30 additions and 3 deletions

View file

@ -61,6 +61,26 @@
tumbler.enable = true;
};
};
chromium = {
programs.chromium = {
enable = true;
extensions = [
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # uBlock Origin
"fnaicdffflnofjppbagibeoednhnbjhg" # Floccus
"nngceckbapebfimnlniiiahkandclblb" # Bitwarden
"dphilobhebphkdjbpfohgikllaljmgbn" # Simplelogin
];
extraOpts = {
"BrowserSignin" = 0;
"SyncDisabled" = true;
"PasswordManagerEnabled" = false;
"SpellcheckEnabled" = true;
"SpellcheckLanguage" = ["en-GB"];
};
defaultSearchProviderSearchURL = "https://duckduckgo.com/?q=%s";
defaultSearchProviderEnabled = true;
};
};
waybar-experimental-overlay = final: prev: {
waybar = prev.waybar.overrideAttrs (oldAttrs: {
mesonFlags = oldAttrs.mesonFlags ++ ["-Dexperimental=true"];
@ -101,6 +121,7 @@
modules = [
home-manager-config
services
chromium
hyprland.nixosModules.default
./hosts/Vanguard
./services/sshd
@ -157,6 +178,7 @@
modules = [
home-manager-config
services
chromium
hyprland.nixosModules.default
./hosts/Ronin
./services/syncthing/Ronin.nix

View file

@ -39,8 +39,11 @@ in {
swayimg
brightnessctl
];
programs.firefox.package = pkgs.firefox-wayland;
programs.rofi.package = pkgs.rofi-wayland;
programs = {
firefox.package = pkgs.firefox-wayland;
chromium.commandLineArgs = ["--enable-features=UseOzonePlatform" "--ozone-platform=wayland"];
rofi.package = pkgs.rofi-wayland;
};
wayland.windowManager.hyprland = {
enable = true;
package = null; # Use package from nixpkgs
@ -197,13 +200,14 @@ in {
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
windowrule = workspace 2,(neovide)
windowrule = workspace 3,(firefox)
windowrule = workspace 4,(libreoffice).*
windowrule = workspace 4,^(libreoffice).*
windowrule = workspace 4,(Zotero)
windowrule = workspace 5,(Signal)
windowrule = workspace 5,(fractal)
windowrule = workspace 5,(discord)
windowrule = workspace 5,(teams-for-linux)
windowrule = workspace 6,(Nxplayer.bin)
windowrule = workspace 7,^(steam).*
windowrule = float,(foot)
windowrule = center,(foot)
windowrule = float,(pavucontrol)

View file

@ -1,6 +1,7 @@
{pkgs, ...}: {
imports = [
./firefox.nix
./chromium.nix
./wezterm
];
home.packages = with pkgs; [