aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hosts/common/optional/google-authenticator.nix11
1 files changed, 7 insertions, 4 deletions
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;