This commit is contained in:
2026-08-02 21:57:19 +09:00
parent e6c80ad5d6
commit 233ba91309
4 changed files with 24 additions and 32 deletions
@@ -1,23 +1,6 @@
{
inputs,
lib,
pkgs,
...
}:
let
isDarwin = pkgs.stdenv.hostPlatform.isDarwin;
isLinux = pkgs.stdenv.hostPlatform.isLinux;
package =
if isLinux then
inputs.ghostty.packages.${pkgs.stdenv.hostPlatform.system}.ghostty-releasefast
else
null;
in
{
_: {
programs.ghostty = {
enable = true;
inherit package;
systemd.enable = isLinux;
settings = {
theme = "dracula";
@@ -50,19 +33,5 @@ in
};
};
# Global Ghostty keybindings are handled by the running app. Start it hidden
# at login so Option+T and Option+Space work before opening a terminal.
launchd.agents.ghostty-global-keybindings = lib.mkIf isDarwin {
enable = true;
config = {
ProgramArguments = [
"/usr/bin/open"
"-gja"
"Ghostty"
];
RunAtLoad = true;
};
};
xdg.configFile."ghostty/themes/dracula".source = ./dracula.theme;
}
@@ -0,0 +1,17 @@
_: {
# Global Ghostty keybindings are handled by the running app. Start it hidden
# at login so Option+T and Option+Space work before opening a terminal.
launchd.agents.ghostty-global-keybindings = {
enable = true;
config = {
ProgramArguments = [
"/usr/bin/open"
"-gja"
"Ghostty"
];
RunAtLoad = true;
};
};
programs.ghostty.package = null;
}
@@ -0,0 +1,6 @@
{ inputs, pkgs, ... }: {
programs.ghostty = {
systemd.enable = true;
package = inputs.ghostty.packages.${pkgs.stdenv.hostPlatform.system}.ghostty-releasefast;
};
}