refactor(hyprland): move terminal keybind to ghostty

This commit is contained in:
2026-10-10 14:56:13 -04:00
parent c49816235b
commit 29df93631e
3 changed files with 12 additions and 7 deletions

View File

@@ -12,6 +12,11 @@ in
options.modules.desktop.apps.ghostty.enable = lib.mkEnableOption "Ghostty as the desktop terminal";
config = lib.mkIf config.modules.desktop.apps.ghostty.enable {
registry.keybind.${config.networking.hostName}.ghostty = {
keys = "SUPER + Return";
command = "${pkgs.ghostty}/bin/ghostty";
};
home-manager.users.${user}.home.packages = [ pkgs.ghostty ];
};
}

View File

@@ -21,12 +21,6 @@ in
options.modules.desktop.session.hyprland.enable = lib.mkEnableOption "the Hyprland compositor";
config = lib.mkIf config.modules.desktop.session.hyprland.enable {
registry.keybind.${config.networking.hostName} = {
hyprland-terminal = {
keys = "SUPER + Return";
command = "ghostty";
};
};
# This program integration owns the session, portals, and polkit, launched
# through the universal Wayland session manager.

View File

@@ -1,5 +1,11 @@
{ lib, ... }:
{ lib, util, ... }:
{
checks = [
{
assertion = util.registry.predicates.uniqueValue (entry: entry.value.keys);
message = "Desktop keybinds must use unique key chords.";
}
];
type = lib.types.submodule {
options = {