diff options
| author | seth <[email protected]> | 2023-08-17 13:46:41 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-08-17 13:55:47 -0400 |
| commit | 6ca79241fe6a45ca4468e4c54c778df116c0b14f (patch) | |
| tree | ca6bbd7eaec86125c0e59a2553922ea4ef4a2b9b /users/seth/programs/chromium.nix | |
| parent | 76127171e4ed7abcb2a14039f358e117aac20181 (diff) | |
users/seth: make everything a module
Diffstat (limited to 'users/seth/programs/chromium.nix')
| -rw-r--r-- | users/seth/programs/chromium.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/users/seth/programs/chromium.nix b/users/seth/programs/chromium.nix new file mode 100644 index 0000000..de61719 --- /dev/null +++ b/users/seth/programs/chromium.nix @@ -0,0 +1,26 @@ +{ + config, + lib, + ... +}: let + cfg = config.getchoo.programs.chromium; + inherit (lib) mkEnableOption mkIf; +in { + options.getchoo.programs.chromium.enable = mkEnableOption "chromium" // {default = config.getchoo.desktop.enable;}; + + config = mkIf cfg.enable { + programs.chromium = { + enable = true; + # hw accel support + commandLineArgs = [ + "--ignore-gpu-blocklist" + "--enable-gpu-rasterization" + "--enable-gpu-compositing" + "--enable-native-gpu-memory-buffers" + "--enable-zero-copy" + "--enable-features=VaapiVideoDecoder,VaapiVideoEncoder,CanvasOopRasterization,RawDraw,WebRTCPipeWireCapturer,Vulkan,WaylandWindowDecorations,WebUIDarkMode" + "--force-dark-mode" + ]; + }; + }; +} |
