Switch firefox for chromium with default plugins installed

This commit is contained in:
Evie Litherland-Smith 2023-06-08 10:48:25 +01:00
parent 7eb3b8bcab
commit 68b356d1b4
7 changed files with 29 additions and 19 deletions

View file

@ -3,7 +3,7 @@
home.username = "elitherl";
home.homeDirectory = "/home/elitherl";
home.stateVersion = "22.11";
home.packages = [pkgs.microsoft-edge];
home.packages = with pkgs; [microsoft-edge zotero];
programs.fish.functions.nvsync = ''
rsync -avz --filter=':- .gitignore' --exclude='.git*'\

View file

@ -1,6 +1,5 @@
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
bind = SUPER, Return, exec, wezterm
bind = SUPER SHIFT, Return, exec, foot
bind = SUPER, Q, killactive,
bind = SUPER, E, exec, power-profiles
bind = SUPER, P, exec, powermenu
@ -8,7 +7,7 @@ bind = SUPER, V, togglefloating,
bind = SUPER, Space, exec, rofi -show drun
bind = SUPER, S, exec, grim -g "$(slurp)"
bind = SUPER, F1, exec, swaylock
bind = SUPER, W, exec, firefox
bind = SUPER, W, exec, chromium
bind = SUPER, F, exec, thunar
bind = SUPER, M, fullscreen, 1
bind = SUPER, A, bringactivetotop

View file

@ -9,8 +9,6 @@ windowrule = center, ^(pavucontrol)$
windowrule = center, ^(.blueman-manager-wrapped)$
windowrule = move 2% 6%, ^(otpclient)$
windowrule = workspace 2 silent, ^(firefox)$
windowrule = workspace 3 silent, ^(thunar|libreoffice).*$
windowrule = workspace 2, ^(chromium-browser)$
windowrule = workspace 3, ^(thunar|libreoffice).*$
windowrule = workspace 4 silent, ^(Element|Signal|discord)$
windowrule = monitor 1, ^(firefox)$

View file

@ -151,7 +151,7 @@
"format": "{name}:{icon}",
"format-icons": {
"1": "󰅴",
"2": "󰈹",
"2": "󰊯",
"3": "󰷏",
"4": "󰻞",
"urgent": "",
@ -173,7 +173,7 @@
"format": "{name}:{icon}",
"format-icons": {
"1": "󰅴",
"2": "󰈹",
"2": "󰊯",
"3": "󰷏",
"4": "󰻞",
"urgent": "",

21
home/gui/chromium.nix Normal file
View file

@ -0,0 +1,21 @@
{
config,
lib,
...
}: let
cfg = config.wayland.windowManager.hyprland;
in {
programs.chromium = {
enable = true;
extensions = [
{id = "cjpalhdlnbpafiamejdnhcphjbkeiagm";} # uBlock Origin
{id = "fnaicdffflnofjppbagibeoednhnbjhg";} # Floccus
{id = "nngceckbapebfimnlniiiahkandclblb";} # Bitwarden
{id = "dphilobhebphkdjbpfohgikllaljmgbn";} # Simplelogin
];
commandLineArgs = lib.mkIf cfg.enable [
"--enable-features=UseOzonePlatform"
"--ozone-platform=wayland"
];
};
}

View file

@ -1,10 +1 @@
{pkgs, ...}: {
imports = [./wezterm.nix];
programs.firefox.enable = true;
home.packages = with pkgs; [
bitwarden
marktext
signal-desktop
zotero
];
}
{...}: {imports = [./chromium.nix ./wezterm.nix];}

View file

@ -8,6 +8,7 @@
./ssh/personal.nix
];
home.packages = with pkgs; [
signal-desktop
discord
element-desktop
qbittorrent