Sway: Difference between revisions

imported>6t8k
m Don't install sway twice. `programs.sway` already does this, leads to collisions in the nix store all else unchanged.
imported>Techhazard
added swaylock pam config
Line 231: Line 231:
   };
   };


</syntaxhighlight>
=== Swaylock cannot unlock with correct password ===
For swaylock to work you will need to add a file at /etc/pam.d/swaylock with "auth include login"
For this you will need to add the following to your system's nixos configuration:
<syntaxhighlight lang="nix>
  security.pam.services.swaylock.text = ''
    # PAM configuration file for the swaylock screen locker. By default, it includes
    # the 'login' configuration file (see /etc/pam.d/login)
    auth include login
  '';
</syntaxhighlight>
</syntaxhighlight>


[[Category:Window managers]]
[[Category:Window managers]]
[[Category:Applications]]
[[Category:Applications]]