Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nixos-modules/host/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ in
WorkingDirectory = "${stateDir}/%i";
ExecStart = "${stateDir}/%i/current/bin/microvm-run";
ExecStop = "${stateDir}/%i/booted/bin/microvm-shutdown";
TimeoutSec = 150;
TimeoutSec = config.microvm.host.startupTimeout;
Restart = "always";
RestartSec = "5s";
User = user;
Expand Down
5 changes: 5 additions & 0 deletions nixos-modules/host/options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
Whether to enable the microvm.nix host module.
'';
};
host.startupTimeout = mkOption {
description = "Maximum allowed startup time (secs) for the vms";
type = types.int;
default = 150;
};

host.useNotifySockets = mkOption {
type = types.bool;
Expand Down