@@ -27,7 +27,7 @@ let
2727 protocol=${concatStringsSep "," p.protocol}
2828 ${optionalString (p.user != "") "user=${p.user}"}
2929 ${optionalString (p.password != "") "user=${p.password}"}
30− admin=${if p.admin then "allow" else "no"}
30+ admin=${concatStringsSep "," p.admin}
3131 ${optionalString (p.ssl.key != null) "ssl_key=${p.ssl.key}"}
3232 ${optionalString (p.ssl.cert != null) "ssl_cert=${p.ssl.cert}"}
3333 ${optionalString (p.ssl.chain != null) "ssl_chain=${p.ssl.chain}"}
@@ -118,9 +118,9 @@ let
118118 };
119119
120120 admin = mkOption {
121− description = "Controls whether or not administrative commands are allowed.";
122− type = types.bool;
123− default = false;
121+ description = "A comma-separated list of admin IP addresses.";
122+ type = types.listOf types.str;
123+ default = ["127.0.0.1"];
124124 };
125125
126126 ssl = {
@@ -156,7 +156,7 @@ let
156156 dbOptions = {
157157 type = mkOption {
158158 description = "Rippled database type.";
159− type = types.enum ["rocksdb" "nudb" "sqlite" "hyperleveldb"];
159+ type = types.enum ["rocksdb" "nudb"];
160160 default = "rocksdb";
161161 };
162162
@@ -217,7 +217,7 @@ in
217217 default = {
218218 rpc = {
219219 port = 5005;
220− admin = true;
220+ admin = ["127.0.0.1"];
221221 protocol = ["http"];
222222 };
223223