Fix bogus mkOption types
Among others, systemd unit options were not being type-checked because of this. mkOption should really check its arguments better...
This commit is contained in:
@@ -32,13 +32,13 @@ in {
|
||||
host = mkOption {
|
||||
description = "Graphite web frontend listen address";
|
||||
default = "127.0.0.1";
|
||||
types = type.uniq types.string;
|
||||
type = types.uniq types.string;
|
||||
};
|
||||
|
||||
port = mkOption {
|
||||
description = "Graphite web frontend port";
|
||||
default = "8080";
|
||||
types = type.uniq types.string;
|
||||
type = types.uniq types.string;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user