dot
vizie's NixOS desktop: Hyprland, CachyOS kernel and gaming tweaks
2040204
1 file changed +21 −2
modifiedmodules/home/packages.nix
@@ -1,5 +1,24 @@ | ||
| 1 | 1 | # Programs your configs and scripts call, and your own tools. |
| 2 | 2 | { inputs, pkgs, ... }: |
| 3 | +let | |
| 4 | + system = pkgs.stdenv.hostPlatform.system; | |
| 5 | + | |
| 6 | + # Philly's webview (WebKitGTK) closes at once on the NVIDIA driver under | |
| 7 | + # Wayland, with "Error 71 (Protocol error) dispatching to Wayland display", | |
| 8 | + # unless its DMA-BUF renderer is off. Set on the program itself, so it holds | |
| 9 | + # however Philly is started (terminal, fuzzel, or as the folder handler from | |
| 10 | + # an app running as a systemd service, which doesn't get hyprland.lua's env). | |
| 11 | + philly = pkgs.symlinkJoin { | |
| 12 | + name = "philly"; | |
| 13 | + paths = [ inputs.philly.packages..default ]; | |
| 14 | + nativeBuildInputs = [ pkgs.makeBinaryWrapper ]; | |
| 15 | + postBuild = '' | |
| 16 | + rm $out/bin/philly | |
| 17 | + makeWrapper /bin/philly $out/bin/philly \ | |
| 18 | + --set-default WEBKIT_DISABLE_DMABUF_RENDERER 1 | |
| 19 | + ''; | |
| 20 | + }; | |
| 21 | +in | |
| 3 | 22 | { |
| 4 | 23 | home.packages = with pkgs; [ |
| 5 | 24 | # The Hyprland desktop: launcher, bar flyouts, notifications, idle/lock. |
@@ -21,8 +40,8 @@ | ||
| 21 | 40 | solaar # mouse battery fallback (mouse-battery.sh) |
| 22 | 41 | |
| 23 | 42 | # Screenshots and screen recording (imsh-shot, imsh-cast; Super+Shift+S/F/R). |
| 24 | - inputs.imsh-clients.packages..default | |
| 43 | + inputs.imsh-clients.packages..default | |
| 25 | 44 | # Philly, the file browser (also the handler for folders, in mimeapps.list). |
| 26 | - inputs.philly.packages..default | |
| 45 | + philly | |
| 27 | 46 | ]; |
| 28 | 47 | } |