firefox BAD chromium GOOD
This commit is contained in:
parent
363f1769f7
commit
01f7718001
@ -125,7 +125,7 @@
|
||||
virtualisation = {
|
||||
waydroid.enable = false;
|
||||
podman.enable = false;
|
||||
docker.enable = true;
|
||||
docker.enable = false;
|
||||
libvirtd.enable = false;
|
||||
};
|
||||
|
||||
|
@ -32,6 +32,8 @@ in {
|
||||
(mkRule "firefox" "Doc-View")
|
||||
(mkRule ".firefox-wrapped" "Doc-View")
|
||||
# wm
|
||||
(mkRule ".gnome-shell-wrapped" "LowLatency_RT")
|
||||
(mkRule "gnome-shell" "LowLatency_RT")
|
||||
(mkRule "Hyprland" "LowLatency_RT")
|
||||
(mkRule "rofi" "LowLatency_RT")
|
||||
(mkRule "wlsunset" "BG_CPUIO")
|
||||
@ -39,6 +41,8 @@ in {
|
||||
# term
|
||||
(mkRule "wezterm-gui" "Doc-View")
|
||||
(mkRule "foot" "Doc-View")
|
||||
(mkRule "gnome-terminal" "Doc-View")
|
||||
(mkRule ".gnome-terminal-wrapped" "Doc-View")
|
||||
# other
|
||||
(mkRule "syncthing" "BG_CPUIO")
|
||||
];
|
||||
|
31
users/modules/chromium/default.nix
Normal file
31
users/modules/chromium/default.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{config, ...}: {
|
||||
home.persistence."${config.system.persistDir}${config.home.homeDirectory}".directories = [".config/chromium"];
|
||||
programs.chromium = {
|
||||
enable = true;
|
||||
commandLineArgs = [
|
||||
"--ozone-platform-hint=auto"
|
||||
"--enable-features=WaylandWindowDecorations"
|
||||
"--enable-crashpad"
|
||||
"--flag-switches-begin"
|
||||
"--enable-gpu-rasterization"
|
||||
"--enable-unsafe-webgpu"
|
||||
"--enable-zero-copy"
|
||||
"--ignore-gpu-blocklist"
|
||||
"--disable-gpu-driver-bug-workarounds"
|
||||
"--ozone-platform-hint=wayland"
|
||||
"--enable-features=SystemNotifications,WaylandWindowDecorations,CanvasOopRasterization,EnableDrDc,RawDraw,WebRTCPipeWireCapturer"
|
||||
"--disable-features=Vulkan"
|
||||
"--flag-switches-end"
|
||||
"--disk-cache-dir=\"$XDG_RUNTIME_DIR/chromium-cache\""
|
||||
"--process-per-site"
|
||||
];
|
||||
extensions = [
|
||||
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin
|
||||
"nngceckbapebfimnlniiiahkandclblb" # bitwarden
|
||||
"eimadpbcbfnmbkopoojfekhnkhdbieeh" # dark reader
|
||||
"clngdbkpkpeebahjckkjfobafhncgmne" # stylus
|
||||
"hlepfoohegkhhmjieoechaddaejaokhf" # refined github
|
||||
"annfbnbieaamhaimclajlajpijgkdblo" # dark theme
|
||||
];
|
||||
};
|
||||
}
|
@ -11,7 +11,7 @@
|
||||
};
|
||||
in {
|
||||
home.persistence."${config.system.persistDir}${config.home.homeDirectory}".directories = [
|
||||
".config/discord"
|
||||
".config/discordcanary"
|
||||
];
|
||||
xdg.configFile."discordcanary/settings.json".text = builtins.toJSON {
|
||||
openasar = {
|
||||
@ -28,17 +28,17 @@ in {
|
||||
home.packages = let
|
||||
flags = [
|
||||
"--flag-switches-begin"
|
||||
"--enable-features=UseOzonePlatform,WebRTCPipeWireCapturer,Vulkan"
|
||||
"--enable-features=UseOzonePlatform,WebRTCPipeWireCapturer"
|
||||
"--flag-switches-end"
|
||||
"--ozone-platform=wayland"
|
||||
"--enable-webrtc-pipewire-capturer"
|
||||
# "--disable-gpu-memory-buffer-video-frames"
|
||||
# "--enable-accelerated-mjpeg-decode"
|
||||
# "--enable-accelerated-video"
|
||||
# "--enable-gpu-rasterization"
|
||||
# "--enable-native-gpu-memory-buffers"
|
||||
# "--enable-zero-copy"
|
||||
# "--ignore-gpu-blocklist"
|
||||
"--disable-gpu-memory-buffer-video-frames"
|
||||
"--enable-accelerated-mjpeg-decode"
|
||||
"--enable-accelerated-video"
|
||||
"--enable-gpu-rasterization"
|
||||
"--enable-native-gpu-memory-buffers"
|
||||
"--enable-zero-copy"
|
||||
"--ignore-gpu-blocklist"
|
||||
];
|
||||
pkg =
|
||||
(pkgs.discord-canary.override {
|
||||
|
@ -101,7 +101,7 @@ in {
|
||||
# ["hyprland" "foot"]
|
||||
# desktop stuff
|
||||
["wayland"]
|
||||
["firefox" "discord"]
|
||||
["chromium"]
|
||||
# cli stuff
|
||||
["zoxide" "zsh" "fzf" "starship" "direnv"]
|
||||
# dev stuff
|
||||
|
Loading…
Reference in New Issue
Block a user