From 507c311bf874b08ccbd2fc3e52be69bff049bbad Mon Sep 17 00:00:00 2001 From: Alex Mickelson Date: Wed, 28 May 2025 09:04:03 -0600 Subject: [PATCH] got ghostty working on work home manager --- nix/home-manager/work.home.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/nix/home-manager/work.home.nix b/nix/home-manager/work.home.nix index d6a9dd8..3bd0729 100644 --- a/nix/home-manager/work.home.nix +++ b/nix/home-manager/work.home.nix @@ -1,5 +1,8 @@ -{ config, pkgs, ... }: -{ +{ config, pkgs, ... }: + +let + nixgl = import (fetchTarball "https://github.com/nix-community/nixGL/archive/main.tar.gz") {}; +in { home.username = "alexm"; home.homeDirectory = "/home/alexm"; nixpkgs.config.allowUnfree = true; @@ -29,12 +32,16 @@ makemkv elixir_1_18 inotify-tools - # (builtins.getFlake "github:ghostty-org/ghostty").packages.${pkgs.system}.default - # ghostty # gnome-themes-extra uv ghostty + nixgl.nixGLIntel + (config.lib.nixGL.wrap ghostty) ]; + + programs.ghostty = { + enable = true; + }; programs.fish = { enable = true; shellInit = '' @@ -157,7 +164,7 @@ TryExec=/home/alexm/.local/share/flatpak/exports/bin/com.brave.Browser''; "org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0" = { name = "Launch Ghostty"; - command = "ghostty"; + command = "nixGL ghostty"; binding = "t"; }; };