This commit is contained in:
2026-07-09 16:32:40 +09:00
parent 83e71a1ed5
commit 312227f8b3
5 changed files with 31 additions and 15 deletions
+8 -6
View File
@@ -1,10 +1,16 @@
{
pkgs,
lib,
config,
inputs,
...
}:
let
cfg = config.my.applications.ghostty.homeManager;
system = pkgs.stdenv.hostPlatform.system;
ghosttyPkg = inputs.ghostty.packages.${system}.ghostty-releasefast;
in
{
options.my.applications.ghostty.homeManager = {
@@ -19,6 +25,8 @@ in
programs.ghostty = {
enable = true;
package = ghosttyPkg;
systemd.enable = true;
settings = {
@@ -51,20 +59,14 @@ in
# Font size
"ctrl+shift+semicolon=increase_font_size:1"
"ctrl+shift+minus=decrease_font_size:1"
# Quick terminal
"global:super+space=toggle_quick_terminal"
];
# Quick terminal
quick-terminal-position = "top";
quick-terminal-size = "100%";
gtk-quick-terminal-layer = "overlay";
quick-terminal-keyboard-interactivity = "exclusive";
quick-terminal-autohide = false;
quit-after-last-window-closed = false;
+8 -3
View File
@@ -2,10 +2,15 @@
pkgs,
lib,
config,
inputs,
...
}:
let
cfg = config.my.applications.ghostty.system;
system = pkgs.stdenv.hostPlatform.system;
ghosttyPkg = inputs.ghostty.packages.${system}.ghostty-releasefast;
in
{
options.my.applications.ghostty.system = {
@@ -13,9 +18,9 @@ in
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
ghostty # A fast and minimal terminal emulator for Wayland
ghostty.terminfo # Terminfo database for ghostty
environment.systemPackages = [
ghosttyPkg # A fast and minimal terminal emulator for Wayland
ghosttyPkg.terminfo # Terminfo database for ghostty
];
};
}