swaylock: move niri lock hotkey

This commit is contained in:
müde 2026-04-09 17:31:53 +02:00
parent 26a4d33742
commit 98da73dceb
2 changed files with 8 additions and 7 deletions

View file

@ -1,11 +1,11 @@
# based on https://codeberg.org/kiara/cfg/src/commit/b9c472acd78c9c08dfe8b6a643c5c82cc5828433/home-manager/kiara/swaylock.nix#
{ pkgs, config, ... }:
{ pkgs, config, lib, ... }:
{
config = {
stylix.targets.swaylock = {
enable = true;
useWallpaper = true;
};
programs.swaylock = {
enable = true;
package = pkgs.swaylock-effects;
@ -50,5 +50,10 @@
}
];
};
};
programs.niri.settings.binds."Super+Alt+L" = {
action.spawn = "${lib.getBin config.programs.swaylock.package}/bin/swaylock";
allow-when-locked = true;
};
}