From 6a706007c8d5b2dd3232fd85ed013c7cb85c065d Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Sun, 3 Nov 2024 19:48:04 +0100 Subject: [PATCH] fix suspension --- common.nix | 3 +++ modules/desktop-environment/home/sway/default.nix | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/common.nix b/common.nix index f0f5da1..3a14546 100644 --- a/common.nix +++ b/common.nix @@ -56,10 +56,12 @@ with builtins; { iw btop nodejs + maven jetbrains.idea-ultimate jetbrains.rust-rover jdk + libsecret fzf ripgrep @@ -96,6 +98,7 @@ with builtins; { }; services = { + systemd-lock-handler.enable = true; openssh = { enable = true; # settings.PasswordAuthentication = false; diff --git a/modules/desktop-environment/home/sway/default.nix b/modules/desktop-environment/home/sway/default.nix index 2a2bee3..e93e9b7 100644 --- a/modules/desktop-environment/home/sway/default.nix +++ b/modules/desktop-environment/home/sway/default.nix @@ -20,6 +20,10 @@ services.swayidle = { enable = true; events = [ + { + event = "before-sleep"; + command = "${pkgs.swaylock}/bin/swaylock -fF -c 442244"; + } { event = "lock"; command = "swaylock -c 441144";