add lockscreen bin for wayland

This commit is contained in:
Daylin Morgan 2024-02-13 12:20:54 -06:00
parent 8d05ec092c
commit 7bb65df2e0
Signed by: daylin
GPG Key ID: C1E52E7DD81DF79F
1 changed files with 9 additions and 1 deletions

View File

@ -7,6 +7,14 @@
}: let
inherit (lib) mkIf;
cfg = config.programs.hyprland;
lock = pkgs.writeShellApplication {
name = "lock";
runtimeInputs = with pkgs; [swaylock];
text = ''
swaylock -c 1e1e2e
'';
};
in {
config = mkIf cfg.enable {
security.pam.services.swaylock = {};
@ -18,7 +26,7 @@ in {
wlr-randr
kanshi
swaylock
lock
brightnessctl
udiskie