nix/home/ghostty.nix
2025-04-30 21:19:26 -05:00

71 lines
1.8 KiB
Nix

{
config,
pkgs,
inputs,
lib,
system-font,
...
}:
{
options.custom.gui = with lib; {
ghostty = {
enable = mkEnableOption "Enable ghostty";
};
};
config = lib.mkIf config.custom.gui.ghostty.enable {
home.packages = lib.mkIf pkgs.stdenv.isLinux (
with pkgs;
[
inputs.ghostty.packages."${system}".default
]
);
xdg.configFile."ghostty/config".text = ''
gtk-single-instance = true
gtk-titlebar = false
window-decoration = server
quit-after-last-window-closed = true
# gtk-adwaita = false
font-family = ${system-font}
font-size = 11
app-notifications = no-clipboard-copy
# theme = gruber-darker
theme = xcodelighthc
# font-family = Iosevka Nerd Font Mono
# font-size = 13
# # background = #062329
# background = #072626
# # foreground = #d1b897
# foreground = #d3b58d
# cursor-color = #ffffff
# # cursor-text = #d1b897
# cursor-text = #d3b58d
# # selection-background = #0000ff
# # selection-foreground = #d1b897
# selection-background = #0000ff
# selection-foreground = #d3b58d
# # palette = 0=#062329
# palette = 0=#072626
# # palette = 1=#0b3335
# # palette = 2=#0000ff
# palette = 3=#44b340
# palette = 4=#8cde94
# # palette = 5=#d1b897
# palette = 5=#d3b58d
# palette = 6=#c1d1e3
# palette = 7=#ffffff
# palette = 8=#626880
# palette = 9=#e67172
# palette = 10=#8ec772
# palette = 11=#d9ba73
# palette = 12=#7b9ef0
# palette = 13=#f2a4db
# palette = 14=#5abfb5
# palette = 15=#b5bfe2
keybind = all:ctrl+shift+period=text:\x1b\x1f\x4c\x23\x1f
'';
};
}