refactor(hyprland): rename keybind registry

This commit is contained in:
2026-10-10 14:49:54 -04:00
parent 7abbd5450f
commit cab608fe4e
2 changed files with 2 additions and 3 deletions

View File

@@ -5,7 +5,6 @@
}: }:
# The Hyprland compositor. # The Hyprland compositor.
let let
mkBind = keybind: { mkBind = keybind: {
_args = [ _args = [
(lib.concatStringsSep " + " keybind.keys) (lib.concatStringsSep " + " keybind.keys)
@@ -13,7 +12,7 @@ let
]; ];
}; };
keybinds = lib.attrValues ( keybinds = lib.attrValues (
lib.attrByPath [ config.networking.hostName ] { } config.registry.desktop-keybind lib.attrByPath [ config.networking.hostName ] { } config.registry.keybind
); );
toLua = lib.generators.toLua { }; toLua = lib.generators.toLua { };
@@ -22,7 +21,7 @@ in
options.modules.desktop.session.hyprland.enable = lib.mkEnableOption "the Hyprland compositor"; options.modules.desktop.session.hyprland.enable = lib.mkEnableOption "the Hyprland compositor";
config = lib.mkIf config.modules.desktop.session.hyprland.enable { config = lib.mkIf config.modules.desktop.session.hyprland.enable {
registry.desktop-keybind.${config.networking.hostName} = { registry.keybind.${config.networking.hostName} = {
hyprland-terminal = { hyprland-terminal = {
keys = [ keys = [
"SUPER" "SUPER"