|
17 | 17 | default = 1743944919;
|
18 | 18 | description = "Timestamp for the genesis block";
|
19 | 19 | };
|
| 20 | + |
| 21 | + gasLimit = lib.mkOption { |
| 22 | + type = lib.types.int; |
| 23 | + default = 100000000000; |
| 24 | + description = "Gas limit for the genesis block"; |
| 25 | + }; |
| 26 | + |
| 27 | + baseFee = lib.mkOption { |
| 28 | + type = lib.types.int; |
| 29 | + default = 1; |
| 30 | + description = "Base fee for the genesis block"; |
| 31 | + }; |
| 32 | + |
| 33 | + blockTime = lib.mkOption { |
| 34 | + type = lib.types.int; |
| 35 | + default = 2; |
| 36 | + description = "Block time for the genesis block"; |
| 37 | + }; |
20 | 38 | };
|
21 | 39 |
|
22 | 40 | config = {
|
23 | 41 | outputs.settings.processes.${name} = {
|
24 | | - command = "${lib.getExe' config.package "anvil"} --disable-block-gas-limit --disable-code-size-limit --base-fee 1 --block-time 2 --timestamp ${toString config.timestamp} --port ${toString config.port}"; |
| 42 | + command = "${lib.getExe' config.package "anvil"} --gas-limit ${toStringconfig.gasLimit}--base-fee ${toStringconfig.baseFee}--block-time ${toStringconfig.blockTime} --timestamp ${toString config.timestamp} --port ${toString config.port}"; |
25 | 43 |
|
26 | 44 | availability = {
|
27 | 45 | restart = "always";
|
|
0 commit comments