Skip to content

Commit

Permalink
kitty: Work around home-manager/nix GLX issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sebnow committed Sep 2, 2023
1 parent f56722f commit b36ff3b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions home-manager/modules/home-manager/kitty/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,31 @@ in {
};

home.sessionVariables.TERMINAL = "kitty";

# FIXME: Remove once GLX issues are solved on standalone
# installations
# https://github.com/NixOS/nixpkgs/issues/80936
#
# Kitty is no able to create a GLFW window.
#
# This works around the issue by using the executable provided by
# the system. That means the only purpose of this module is to
# provide the configuration.
home.shellAliases.kitty = "/usr/bin/kitty";
xdg.dataFile."applications/kitty.desktop" = {
text = ''
[Desktop Entry]
Version=1.0
Type=Application
Name=kitty
GenericName=Terminal emulator
Comment=Fast, feature-rich, GPU based terminal
TryExec=/usr/bin/kitty
Exec=/usr/bin/kitty
Icon=kitty
Categories=System;TerminalEmulator;
'';
};
})
];
}

0 comments on commit b36ff3b

Please sign in to comment.