We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 453d705 commit 80bddbdCopy full SHA for 80bddbd
nixos-modules/host/default.nix
@@ -241,7 +241,7 @@ in
241
WorkingDirectory = "${stateDir}/%i";
242
ExecStart = "${stateDir}/%i/current/bin/microvm-run";
243
ExecStop = "${stateDir}/%i/booted/bin/microvm-shutdown";
244
- TimeoutSec = 150;
+ TimeoutSec = config.microvm.host.startupTimeout;
245
Restart = "always";
246
RestartSec = "5s";
247
User = user;
nixos-modules/host/options.nix
@@ -9,6 +9,11 @@
9
Whether to enable the microvm.nix host module.
10
'';
11
};
12
+ host.startupTimeout = mkOption {
13
+ description = "Start up timeout for the VMs in seconds";
14
+ type = types.ints.positive;
15
+ default = 150;
16
+ };
17
18
host.useNotifySockets = mkOption {
19
type = types.bool;
0 commit comments