mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 14:20:44 -06:00
add lockscreen bin for wayland
This commit is contained in:
parent
8d05ec092c
commit
7bb65df2e0
1 changed files with 9 additions and 1 deletions
|
@ -7,6 +7,14 @@
|
||||||
}: let
|
}: let
|
||||||
inherit (lib) mkIf;
|
inherit (lib) mkIf;
|
||||||
cfg = config.programs.hyprland;
|
cfg = config.programs.hyprland;
|
||||||
|
|
||||||
|
lock = pkgs.writeShellApplication {
|
||||||
|
name = "lock";
|
||||||
|
runtimeInputs = with pkgs; [swaylock];
|
||||||
|
text = ''
|
||||||
|
swaylock -c 1e1e2e
|
||||||
|
'';
|
||||||
|
};
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
security.pam.services.swaylock = {};
|
security.pam.services.swaylock = {};
|
||||||
|
@ -18,7 +26,7 @@ in {
|
||||||
wlr-randr
|
wlr-randr
|
||||||
kanshi
|
kanshi
|
||||||
|
|
||||||
swaylock
|
lock
|
||||||
brightnessctl
|
brightnessctl
|
||||||
udiskie
|
udiskie
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue