aboutsummaryrefslogtreecommitdiff
path: root/modules/services/options.nix
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-03-26 09:19:11 -0500
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-03-26 09:19:11 -0500
commit6154fca38879afcb57f16adad002df083876116d (patch)
treefa30fa7334eb9ac95dc0dff6de586ab5f2e422c5 /modules/services/options.nix
parent716a1d1f79024dc0629c61bc912a570a4a200a25 (diff)
changes
Diffstat (limited to 'modules/services/options.nix')
-rw-r--r--modules/services/options.nix29
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 {