summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-03-13 16:47:27 -0600
committerAlejandro Soto <alejandro@34project.org>2022-03-13 16:47:27 -0600
commit9271e78b899223a4bf80ca8967a6928ea4b395bc (patch)
tree3577f8b6ececfa9c0c26d3b6fe57b72c9b558d41 /sys
parent608f39c3332e98800f24309eb848d664e983d6ea (diff)
Add PAM OATH
Diffstat (limited to 'sys')
-rw-r--r--sys/default.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/default.nix b/sys/default.nix
index 2b265ec..c68c869 100644
--- a/sys/default.nix
+++ b/sys/default.nix
@@ -274,6 +274,8 @@ in {
interfaces = mkIf (cfg.dhcpInterface != null) {
"${cfg.dhcpInterface}".useDHCP = true;
};
+
+ wireguard.enable = true;
};
i18n.defaultLocale = "es_CR.UTF-8";
@@ -288,6 +290,16 @@ in {
displayManager.startx.enable = true;
};
+ security.pam = {
+ oath = {
+ usersFile = "/var/trust/users.oath";
+ digits = 6;
+ window = 30;
+ };
+
+ services.sshd.oathAuth = true;
+ };
+
services.openssh = {
enable = true;
openFirewall = false;