aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/common/optional/google-authenticator.nix
blob: 721346e9bd1e30cde6b794e7a379541945054d7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ pkgs, ... }:
{
  environment.systemPackages = [
    #pkgs.other
    pkgs.google-authenticator
  ];

  security.pam.services = {
    chfn.googleAuthenticator.enable = true;
    chsh.googleAuthenticator.enable = true;
    #cups.googleAuthenticator.enable = true;
    lightdm.googleAuthenticator.enable = true;
    login.googleAuthenticator.enable = true;
    other.googleAuthenticator.enable = true;
    sshd.googleAuthenticator.enable = true;
    su.googleAuthenticator.enable = true;
    sudo.googleAuthenticator.enable = true;
    vlock.googleAuthenticator.enable = true;
    xlock.googleAuthenticator.enable = true;
    xscreensaver.googleAuthenticator.enable = true;
  };
}