add swaylock to env in swaylock module

this mirrors gtklock
This commit is contained in:
jacekpoz 2024-10-02 18:15:55 +02:00
parent fa40647600
commit 91e360360a
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -1,5 +1,6 @@
{
config,
pkgs,
...
}: let
inherit (config.poz.other.system) username;
@ -7,6 +8,8 @@ in {
# https://github.com/NixOS/nixpkgs/issues/158025
security.pam.services.swaylock.text = "auth include login";
users.users.${username}.packages = [ pkgs.swaylock ];
home-manager.users.${username} = {
programs.swaylock = {
enable = true;