flake.nix: add ghostty modules/home/programs/terminal/ghostty.nix: switch to ghostty flake Signed-off-by: unexplrd <unexplrd@linerds.us>
27 lines
488 B
Nix
27 lines
488 B
Nix
{
|
|
config,
|
|
lib,
|
|
perSystem,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.terminal.ghostty;
|
|
in {
|
|
options = {
|
|
terminal.ghostty.enable = mkEnableOption "enable ghostty terminal";
|
|
};
|
|
config = mkIf cfg.enable {
|
|
programs.ghostty = {
|
|
enable = true;
|
|
package = perSystem.ghostty.ghostty;
|
|
settings = {
|
|
gtk-single-instance = true;
|
|
window-decoration = "client";
|
|
keybind = [
|
|
"ctrl+shift+f=close_surface"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|