From f586aba5b016e22488d2e124f05be25a702a8fe8 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Sun, 6 Jul 2025 12:18:59 -0500 Subject: [PATCH] attempting ghostty wrapper --- homeManagerModules/default.nix | 2 +- homeManagerModules/ghostty.nix | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/homeManagerModules/default.nix b/homeManagerModules/default.nix index 6a3ddf1..da8c644 100644 --- a/homeManagerModules/default.nix +++ b/homeManagerModules/default.nix @@ -55,7 +55,7 @@ sops (writeShellScriptBin "nhmu" '' nix flake update --flake ~/.config/home-manager - nix run home-manager -- switch --flake ~/.config/home-manager + nix run home-manager -- switch --flake ~/.config/home-manager --impure '') # # It is sometimes useful to fine-tune packages, for example, by applying # # overrides. You can do that directly here, just don't forget the diff --git a/homeManagerModules/ghostty.nix b/homeManagerModules/ghostty.nix index c1c470e..29ab993 100644 --- a/homeManagerModules/ghostty.nix +++ b/homeManagerModules/ghostty.nix @@ -4,9 +4,13 @@ TERMINAL = "ghostty"; }; + nixGL.defaultWrapper = "mesa"; + nixGL.installScripts = [ "mesa" ]; + programs.ghostty = lib.mkIf (config.enableShell && config.graphical) { enable = true; enableZshIntegration = true; + package = (config.lib.nixGL.wrap pkgs.ghostty); settings = { # command = "TERM=xterm-256color /usr/bin/bash"; font-size = 12;