Skip to content

Commit

Permalink
me: wl: swaylock: enable new fingerprint support
Browse files Browse the repository at this point in the history
Requires PR #49.
<jirutka/swaylock-effects#49>
  • Loading branch information
spikespaz committed Apr 24, 2024
1 parent 9c8a9b9 commit 38c16cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
8 changes: 4 additions & 4 deletions hosts/common/amd-thinkpad/user-desktop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@
### DESKTOP ENVIRONMENT: WAYLAND ###
####################################
{
# <https://github.com/swaywm/swaylock/issues/61>
# Fingerprint support is provided by #49.
# `login` should include an `auth` line for fprintd if it is installed.
security.pam.services.swaylock.text = ''
auth sufficient pam_unix.so try_first_pass nullok
auth sufficient ${pkgs.fprintd}/lib/security/pam_fprintd.so
auth include login
'';

# <https://github.com/swaywm/swaylock/issues/61>
# security.pam.services.swaylock.text = ''
# auth sufficient ${pkgs.fprintd-grosshack}/lib/security/pam_fprintd_grosshack.so
# auth sufficient ${pkgs.fprintd}/lib/security/pam_fprintd.so
# auth sufficient pam_unix.so try_first_pass nullok
# '';
}
Expand Down
12 changes: 2 additions & 10 deletions users/jacob/wayland/swaylock.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
{ config, pkgs, lib, ... }:
let
# package = pkgs.swaylock-effects.overrideAttrs (self: super: {
# version = "1.6.11";
# src = pkgs.fetchFromGitHub {
# owner = "jirutka";
# repo = "swaylock-effects";
# rev = "v${self.version}";
# sha256 = "sha256-MKmWVYssO9HAcP5uqwpy9kDa6/kfZyV2NI7ibozt7Ug=";
# };
# });
package = let super = pkgs.swaylock-effects;
in pkgs.symlinkJoin {
inherit (super) name pname version meta;
Expand Down Expand Up @@ -85,7 +76,8 @@ in {
in {
### Behavior ###

# ignore-empty-password = true;
fingerprint = true;
ignore-empty-password = true;
# daemonize = true;
# grace = 5; # Specify when auto-lock
# grace-no-mouse = true;
Expand Down

0 comments on commit 38c16cf

Please sign in to comment.