From da992b366ce234167f223a9bf25dba2dcf967af4 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Thu, 8 Aug 2024 04:02:29 -0600 Subject: sys: add exceptions for new IPv6 prefixes --- sys/auth/openssh.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'sys/auth') 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 = { -- cgit v1.2.3