add swaylock to env in swaylock module
this mirrors gtklock
This commit is contained in:
parent
fa40647600
commit
91e360360a
1 changed files with 3 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.poz.other.system) username;
|
inherit (config.poz.other.system) username;
|
||||||
|
@ -7,6 +8,8 @@ in {
|
||||||
# https://github.com/NixOS/nixpkgs/issues/158025
|
# https://github.com/NixOS/nixpkgs/issues/158025
|
||||||
security.pam.services.swaylock.text = "auth include login";
|
security.pam.services.swaylock.text = "auth include login";
|
||||||
|
|
||||||
|
users.users.${username}.packages = [ pkgs.swaylock ];
|
||||||
|
|
||||||
home-manager.users.${username} = {
|
home-manager.users.${username} = {
|
||||||
programs.swaylock = {
|
programs.swaylock = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in a new issue