diff options
author | Janne Heß <janne@hess.ooo> | 2019-12-29 23:57:32 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2020-06-30 09:35:41 +0100 |
commit | ae6a6f421cef90e26d413865e14011477df57656 (patch) | |
tree | c5cffea6013baa74f843b05bef6588c099fb3447 /nixos/modules | |
parent | d35735ae2544d5dccb2ae7f8bcae5383e50cddbd (diff) | |
download | nixpkgs-ae6a6f421cef90e26d413865e14011477df57656.tar nixpkgs-ae6a6f421cef90e26d413865e14011477df57656.tar.gz nixpkgs-ae6a6f421cef90e26d413865e14011477df57656.tar.bz2 nixpkgs-ae6a6f421cef90e26d413865e14011477df57656.tar.lz nixpkgs-ae6a6f421cef90e26d413865e14011477df57656.tar.xz nixpkgs-ae6a6f421cef90e26d413865e14011477df57656.tar.zst nixpkgs-ae6a6f421cef90e26d413865e14011477df57656.zip |
nixos/mongodb: Type all options
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/databases/mongodb.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/modules/services/databases/mongodb.nix b/nixos/modules/services/databases/mongodb.nix index 4453a182990..0f81a8a69e0 100644 --- a/nixos/modules/services/databases/mongodb.nix +++ b/nixos/modules/services/databases/mongodb.nix @@ -41,16 +41,19 @@ in }; user = mkOption { + type = types.str; default = "mongodb"; description = "User account under which MongoDB runs"; }; bind_ip = mkOption { + type = types.str; default = "127.0.0.1"; description = "IP to bind to"; }; quiet = mkOption { + type = types.bool; default = false; description = "quieter output"; }; @@ -68,16 +71,19 @@ in }; dbpath = mkOption { + type = types.str; default = "/var/db/mongodb"; description = "Location where MongoDB stores its files"; }; pidFile = mkOption { + type = types.str; default = "/run/mongodb.pid"; description = "Location of MongoDB pid file"; }; replSetName = mkOption { + type = types.str; default = ""; description = '' If this instance is part of a replica set, set its name here. @@ -86,6 +92,7 @@ in }; extraConfig = mkOption { + type = types.lines; default = ""; example = '' storage.journal.enabled: false |