fix(nixos-1): add guide for OTP login

This commit is contained in:
MDLeom 2020-02-27 17:14:00 +00:00
parent 0e6dd4308d
commit 876cf84493
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
1 changed files with 12 additions and 0 deletions

View File

@ -229,6 +229,18 @@ Following is my "configuration.nix". I'll show you how to secure NixOS using has
};
};
## Requires OTP to login & sudo
security.pam.services = [
{
name = "login";
googleAuthenticator.enable = false;
}
{
name = "sudo";
googleAuthenticator.enable = false;
}
];
## Caddy web server
# require = [ /etc/caddy/caddyProxy.nix /etc/caddy/caddyTor.nix ];
# services.caddyProxy = {