From 0ec3ed3f3741f23b16f827a8de6257742cb454d5 Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Tue, 27 Feb 2024 01:14:14 -0800 Subject: Add Google Authenticator --- ginaz/configuration.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'ginaz/configuration.nix') diff --git a/ginaz/configuration.nix b/ginaz/configuration.nix index ac85c26..8b19828 100644 --- a/ginaz/configuration.nix +++ b/ginaz/configuration.nix @@ -26,11 +26,14 @@ # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [ + bespokesynth curl dmenu feh geeqie git + google-authenticator + google-chrome i3 i3status netcat-openbsd @@ -44,9 +47,13 @@ stoken vim wget + winetricks + wineWowPackages.stagingFull xdotool xorg.xdpyinfo xscreensaver + yabridge + yabridgectl ]; i18n.defaultLocale = "en_US.UTF-8"; @@ -71,6 +78,20 @@ programs.tmux.enable = true; programs.zsh.enable = true; + 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; + }; security.polkit = { enable = true; extraConfig = '' -- cgit v1.2.3