From bda8e266d133804b3024fdc607ddf263037c0f87 Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Fri, 28 Nov 2025 12:53:44 -0800 Subject: Fix authentication for xscreensaver --- hosts/common/optional/google-authenticator.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'hosts/common') diff --git a/hosts/common/optional/google-authenticator.nix b/hosts/common/optional/google-authenticator.nix index 721346e..7b78521 100644 --- a/hosts/common/optional/google-authenticator.nix +++ b/hosts/common/optional/google-authenticator.nix @@ -1,9 +1,12 @@ { pkgs, ... }: { - environment.systemPackages = [ - #pkgs.other - pkgs.google-authenticator - ]; + environment = { + etc."pam.d/xscreensaver".target = "/etc/static/pam.d/xlock"; + systemPackages = [ + #pkgs.other + pkgs.google-authenticator + ]; + }; security.pam.services = { chfn.googleAuthenticator.enable = true; -- cgit v1.2.3