sneeuwvlok/modules/home/terminal/ghostty.nix
2026-03-30 09:09:01 +02:00

27 lines
597 B
Nix

{
config,
lib,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.sneeuwvlok.terminal.ghostty;
in {
options.sneeuwvlok.terminal.ghostty = {
enable = mkEnableOption "enable ghostty";
};
config = mkIf cfg.enable {
programs.ghostty = {
enable = true;
settings = {
command = config.sneeuwvlok.defaults.shell;
background-blur-radius = 20;
theme = "dark:stylix,light:stylix";
window-theme = config.sneeuwvlok.themes.polarity or "dark";
background-opacity = 0.8;
minimum-contrast = 1.1;
};
};
};
}