pinwheel: Add swaylock

This commit is contained in:
Alexander Heldt
2023-08-09 11:48:24 +02:00
parent 5186345042
commit 12856e3795
2 changed files with 16 additions and 0 deletions

View File

@@ -166,6 +166,12 @@
}; };
}; };
security.pam.services.swaylock.text = ''
# PAM configuration file for the swaylock screen locker. By default, it includes
# the 'login' configuration file (see /etc/pam.d/login)
auth include login
'';
age = { age = {
identityPaths = [ "/etc/ssh/pinwheel" ]; identityPaths = [ "/etc/ssh/pinwheel" ];

View File

@@ -181,6 +181,7 @@
move = builtins.genList (x: "$mod SHIFT, ${ws x}, movetoworkspacesilent, ${builtins.toString (x + 1)}") 10; move = builtins.genList (x: "$mod SHIFT, ${ws x}, movetoworkspacesilent, ${builtins.toString (x + 1)}") 10;
in in
select ++ move ++ [ select ++ move ++ [
"$mod, x, exec, swaylock"
"$mod SHIFT, x, exec, systemctl suspend" "$mod SHIFT, x, exec, systemctl suspend"
"$mod, RETURN, exec, foot" "$mod, RETURN, exec, foot"
@@ -236,6 +237,15 @@
}; };
style = ''''; style = '''';
programs.swaylock = {
enable = true;
settings = {
color = "000000";
indicator-idle-visible = false;
show-failed-attempts = true;
};
}; };
services.dunst.enable = true; services.dunst.enable = true;