summaryrefslogtreecommitdiff
path: root/sys/auth/openssh.nix
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2024-08-08 04:02:29 -0600
committerAlejandro Soto <alejandro@34project.org>2024-08-08 04:02:29 -0600
commitda992b366ce234167f223a9bf25dba2dcf967af4 (patch)
treed70029835317a8ad6fde92c9f36eacb4ba561216 /sys/auth/openssh.nix
parent28c234a6df7a1c82c82d7e1eb6e05fa520cbe66c (diff)
sys: add exceptions for new IPv6 prefixes
Diffstat (limited to '')
-rw-r--r--sys/auth/openssh.nix9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/auth/openssh.nix b/sys/auth/openssh.nix
index 161fe6f..248ccc7 100644
--- a/sys/auth/openssh.nix
+++ b/sys/auth/openssh.nix
@@ -26,8 +26,8 @@ in
type = with types; nullOr (submodule {
options = {
- address = mkOption {
- type = str;
+ addresses = mkOption {
+ type = listOf str;
};
interface = mkOption {
@@ -103,9 +103,8 @@ in
PasswordAuthentication = withOath; # Necesario para oath, no reemplaza a oath
};
- listenAddresses = mkIf (cfg.restrictListen != null) (singleton {
- addr = cfg.restrictListen.address;
- });
+ listenAddresses = mkIf (cfg.restrictListen != null)
+ (map (addr: { inherit addr; }) cfg.restrictListen.addresses);
};
users.users = {