summaryrefslogtreecommitdiff
path: root/sys/auth
diff options
context:
space:
mode:
Diffstat (limited to 'sys/auth')
-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 = {