···11-{ ... }:
22-# Enables second factor for ssh password login
33-44-## Usage:
55-# gen-oath-safe <username> totp
66-## scan the qrcode with google authenticator (or FreeOTP)
77-## copy last line into secrets/<host>/users.oath (chmod 700)
88-{
99- security.pam.oath = {
1010- # enabling it will make it a requisite of `all` services
1111- # enable = true;
1212- digits = 6;
1313- # TODO assert existing
1414- usersFile = "${config.krebs.secret.directory}/users.oath";
1515- };
1616- # I want TFA only active for sshd with password-auth
1717- security.pam.services.sshd.oathAuth = true;
1818-}