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 ]; }; }; - }