mirror of https://gitlab.com/curben/blog
fix(nixos-1): add guide for OTP login
This commit is contained in:
parent
0e6dd4308d
commit
876cf84493
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue