nixos/mongodb: Type all options
This commit is contained in:
parent
d35735ae25
commit
ae6a6f421c
@ -41,16 +41,19 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
user = mkOption {
|
user = mkOption {
|
||||||
|
type = types.str;
|
||||||
default = "mongodb";
|
default = "mongodb";
|
||||||
description = "User account under which MongoDB runs";
|
description = "User account under which MongoDB runs";
|
||||||
};
|
};
|
||||||
|
|
||||||
bind_ip = mkOption {
|
bind_ip = mkOption {
|
||||||
|
type = types.str;
|
||||||
default = "127.0.0.1";
|
default = "127.0.0.1";
|
||||||
description = "IP to bind to";
|
description = "IP to bind to";
|
||||||
};
|
};
|
||||||
|
|
||||||
quiet = mkOption {
|
quiet = mkOption {
|
||||||
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = "quieter output";
|
description = "quieter output";
|
||||||
};
|
};
|
||||||
@ -68,16 +71,19 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
dbpath = mkOption {
|
dbpath = mkOption {
|
||||||
|
type = types.str;
|
||||||
default = "/var/db/mongodb";
|
default = "/var/db/mongodb";
|
||||||
description = "Location where MongoDB stores its files";
|
description = "Location where MongoDB stores its files";
|
||||||
};
|
};
|
||||||
|
|
||||||
pidFile = mkOption {
|
pidFile = mkOption {
|
||||||
|
type = types.str;
|
||||||
default = "/run/mongodb.pid";
|
default = "/run/mongodb.pid";
|
||||||
description = "Location of MongoDB pid file";
|
description = "Location of MongoDB pid file";
|
||||||
};
|
};
|
||||||
|
|
||||||
replSetName = mkOption {
|
replSetName = mkOption {
|
||||||
|
type = types.str;
|
||||||
default = "";
|
default = "";
|
||||||
description = ''
|
description = ''
|
||||||
If this instance is part of a replica set, set its name here.
|
If this instance is part of a replica set, set its name here.
|
||||||
@ -86,6 +92,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = mkOption {
|
extraConfig = mkOption {
|
||||||
|
type = types.lines;
|
||||||
default = "";
|
default = "";
|
||||||
example = ''
|
example = ''
|
||||||
storage.journal.enabled: false
|
storage.journal.enabled: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user