started splitting up graphical programs because some of them don't really work well on ubuntu

This commit is contained in:
John Lancaster
2025-07-06 21:39:41 -05:00
parent ddf5bcaeee
commit ce738ae612
7 changed files with 24 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
{ config, pkgs, lib, nixgl, ... }:
{
home.sessionVariables = lib.mkIf (config.enableShell && config.graphical) {
home.sessionVariables = lib.mkIf (config.enableShell && config.graphical.ghostty) {
TERMINAL = "ghostty";
};
@@ -9,7 +9,7 @@
nixGL.defaultWrapper = "mesa";
nixGL.installScripts = [ "mesa" ];
programs.ghostty = lib.mkIf (config.enableShell && config.graphical) {
programs.ghostty = lib.mkIf (config.enableShell && config.graphical.ghostty) {
enable = true;
enableZshIntegration = true;
package = config.lib.nixGL.wrap pkgs.ghostty;
@@ -52,7 +52,7 @@
};
# https://github.com/ghostty-org/ghostty/discussions/3763#discussioncomment-11699970
xdg.desktopEntries."com.mitchellh.ghostty" = lib.mkIf (config.enableShell && config.graphical) {
xdg.desktopEntries."com.mitchellh.ghostty" = lib.mkIf (config.enableShell && config.graphical.ghostty) {
name = "Ghostty";
type = "Application";
comment = "A terminal emulator";