From 0ee3a84f4a8832402eb11998f6d6ee6ec6111d84 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Tue, 26 Sep 2023 08:48:56 +0200 Subject: [PATCH] feat: add swaylock-fancy --- configuration.nix | 5 ++++- home-manager/sway/default.nix | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index 690358d..80a9390 100644 --- a/configuration.nix +++ b/configuration.nix @@ -71,7 +71,10 @@ }; }; - security.polkit.enable = true; + security = { + polkit.enable = true; + pam.services.swaylock = { }; + }; environment.systemPackages = with pkgs; [ neovim diff --git a/home-manager/sway/default.nix b/home-manager/sway/default.nix index a6a3f78..d2c21e8 100644 --- a/home-manager/sway/default.nix +++ b/home-manager/sway/default.nix @@ -10,6 +10,7 @@ in home.packages = with pkgs; [ xdg-utils + swaylock-fancy ]; programs.fuzzel = { @@ -88,6 +89,7 @@ in in lib.mkOptionDefault { "${modifier}+Shift+o" = "exec xdg-open \"zoommtg://zoom.us/join?action=join&confno=4861587170&pwd=ZVk3aHphcWppY21ONjZOMVh6STN6dz09\""; + "${modifier}+l" = "exec swaylock-fancy"; }; assigns = { @@ -108,5 +110,4 @@ in ]; }; }; - }