diff options
Diffstat (limited to 'modules/services/options.nix')
| -rw-r--r-- | modules/services/options.nix | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/modules/services/options.nix b/modules/services/options.nix index 17a4e6b..70fd695 100644 --- a/modules/services/options.nix +++ b/modules/services/options.nix @@ -56,26 +56,19 @@ in { sshd = { enable = mkEnableOption "OpenSSH server"; - portConfig = mkOption { - description = "List of ssh bind hosts. see submodule options for details"; - type = lib.types.listOf (lib.types.submodule { - options = { - port = mkOption { - description = "Port to run on"; - type = lib.types.port; - }; - - listenAddr = mkOption { - description = "Address to listen on"; - type = lib.types.str; - default = "127.0.0.1"; - }; + port = mkOption { + description = "Port to run on"; + type = lib.types.port; + }; - otp = mkEnableOption "Whether to require TOTP (Google Authenticator) 2fa codes for this port"; - rootLogin = mkEnableOption "Whether to allow root login for this port"; - }; - }); + listenAddr = mkOption { + description = "Address to listen on"; + type = lib.types.str; + default = "127.0.0.1"; }; + + otp = mkEnableOption "Whether to require TOTP (Google Authenticator) 2fa codes"; + rootLogin = mkEnableOption "Whether to allow root login"; }; forgejo = webserviceOptions { |
