From 255d76da31abce44060a28f23ecc95f1b534e720 Mon Sep 17 00:00:00 2001 From: Riley Apeldoorn Date: Tue, 6 Jun 2023 20:55:21 +0200 Subject: [PATCH] Switch to more secure-ish waylock --- shared/core/gui.nix | 2 ++ shared/home/gui/sway.nix | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/shared/core/gui.nix b/shared/core/gui.nix index 100cb52..2ba90e5 100644 --- a/shared/core/gui.nix +++ b/shared/core/gui.nix @@ -16,6 +16,8 @@ in { security.rtkit.enable = true; + security.pam.services.waylock = {}; + services.xserver = { enable = true; displayManager.gdm.enable = true; diff --git a/shared/home/gui/sway.nix b/shared/home/gui/sway.nix index e470280..995d172 100644 --- a/shared/home/gui/sway.nix +++ b/shared/home/gui/sway.nix @@ -37,7 +37,7 @@ in with lib; { home.packages = with pkgs; [ kitty - swaylock + waylock wl-clipboard sc (writeScriptBin "c" '' @@ -98,7 +98,7 @@ in with lib; { "${mod}+q" = "exec ${pkgs.foot}/bin/foot"; "${mod}+Return" = "exec ${terminal}"; - "${mod}+Escape" = "exec swaylock"; + "${mod}+Escape" = "exec waylock"; "${mod}+Tab" = "exec ${pkgs.firefox-wayland}/bin/firefox"; "${mod}+Alt+Tab" = "exec ${pkgs.google-chrome}/bin/google-chrome-stable --ozone-platform-hint=auto --enable-features=VaapiVideoDecoder,VaapiVideoEncoder";