fix suspension

This commit is contained in:
Schrottkatze 2024-11-03 19:48:04 +01:00
parent 30f0f7ec20
commit 6a706007c8
No known key found for this signature in database
2 changed files with 7 additions and 0 deletions

View file

@ -56,10 +56,12 @@ with builtins; {
iw iw
btop btop
nodejs nodejs
maven maven
jetbrains.idea-ultimate jetbrains.idea-ultimate
jetbrains.rust-rover jetbrains.rust-rover
jdk jdk
libsecret libsecret
fzf fzf
ripgrep ripgrep
@ -96,6 +98,7 @@ with builtins; {
}; };
services = { services = {
systemd-lock-handler.enable = true;
openssh = { openssh = {
enable = true; enable = true;
# settings.PasswordAuthentication = false; # settings.PasswordAuthentication = false;

View file

@ -20,6 +20,10 @@
services.swayidle = { services.swayidle = {
enable = true; enable = true;
events = [ events = [
{
event = "before-sleep";
command = "${pkgs.swaylock}/bin/swaylock -fF -c 442244";
}
{ {
event = "lock"; event = "lock";
command = "swaylock -c 441144"; command = "swaylock -c 441144";