From f07c0f9e2d36b43d424a4725342bf63b6903178c Mon Sep 17 00:00:00 2001 From: alexion Date: Sun, 11 Oct 2026 17:25:04 -0400 Subject: [PATCH] refactor(hyprlock): order registry after settings --- .../desktop/session/hyprland/hyprlock.nix | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/configs/nixos/modules/desktop/session/hyprland/hyprlock.nix b/configs/nixos/modules/desktop/session/hyprland/hyprlock.nix index a37098f..0e2f771 100644 --- a/configs/nixos/modules/desktop/session/hyprland/hyprlock.nix +++ b/configs/nixos/modules/desktop/session/hyprland/hyprlock.nix @@ -43,26 +43,6 @@ in lib.mkEnableOption "the hyprlock lock screen"; config = lib.mkIf config.modules.desktop.session.hyprland.hyprlock.enable { - registry.keybind.${config.networking.hostName} = { - hyprlock-lock = { - keys = "SUPER + X"; - action = { - kind = "exec"; - # The guard drops the call when a locker is already up, so no manual - # trigger stacks a second hyprlock over the first. - command = "${pkgs.procps}/bin/pidof hyprlock || ${pkgs.hyprlock}/bin/hyprlock"; - }; - }; - - hyprlock-toggle-idle-inhibit = { - keys = "SUPER + CTRL + X"; - action = { - kind = "exec"; - command = "${idleLockToggle}"; - }; - }; - }; - home-manager.users.${config.user.name} = { # Colors and the lock-screen background come from Stylix's hyprlock target, # so only geometry and behaviour are set here. @@ -97,5 +77,25 @@ in }; }; }; + + registry.keybind.${config.networking.hostName} = { + hyprlock-lock = { + keys = "SUPER + X"; + action = { + kind = "exec"; + # The guard drops the call when a locker is already up, so no manual + # trigger stacks a second hyprlock over the first. + command = "${pkgs.procps}/bin/pidof hyprlock || ${pkgs.hyprlock}/bin/hyprlock"; + }; + }; + + hyprlock-toggle-idle-inhibit = { + keys = "SUPER + CTRL + X"; + action = { + kind = "exec"; + command = "${idleLockToggle}"; + }; + }; + }; }; }