summary refs log tree commit diff
path: root/nixos/modules/misc/nixos.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/misc/nixos.nix')
-rw-r--r--nixos/modules/misc/nixos.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/misc/nixos.nix b/nixos/modules/misc/nixos.nix
index 356129211d0..84365b640a4 100644
--- a/nixos/modules/misc/nixos.nix
+++ b/nixos/modules/misc/nixos.nix
@@ -37,8 +37,8 @@ with lib;
 
     nixos.extraModules = mkOption {
       default = [];
-      example = literalExample "mkIf config.services.openssh.enable [ ./sshd-config.nix ]";
-      type = types.listOf types.unspecified;
+      example = literalExample "[ ./sshd-config.nix ]";
+      type = types.listOf (types.either (types.submodule ({...}:{options={};})) types.path);
       description = ''
         Define additional modules which would be loaded to evaluate the
         configuration.