diff --git a/examples/graphics.nix b/examples/graphics.nix index cbce2f41..f29405fb 100644 --- a/examples/graphics.nix +++ b/examples/graphics.nix @@ -55,7 +55,7 @@ nixpkgs.lib.nixosSystem { # Environment = "WAYLAND_DISPLAY=wayland-1"; ExecStart = "${wayland-proxy-virtwl}/bin/wayland-proxy-virtwl --virtio-gpu --x-display=0 --xwayland-binary=${xwayland}/bin/Xwayland"; Restart = "on-failure"; - RestartSec = 1; + RestartSec = 5; }; wantedBy = [ "default.target" ]; }; diff --git a/nixos-modules/host.nix b/nixos-modules/host.nix index 1ac2b86b..75eef750 100644 --- a/nixos-modules/host.nix +++ b/nixos-modules/host.nix @@ -380,7 +380,7 @@ in GuessMainPID = "no"; WorkingDirectory = "${stateDir}/%i"; Restart = "always"; - RestartSec = "1s"; + RestartSec = "5s"; SyslogIdentifier = "microvm-virtiofsd@%i"; LimitNOFILE = 1048576; }; @@ -430,7 +430,7 @@ in ExecStop = "${stateDir}/%i/booted/bin/microvm-shutdown"; TimeoutStopSec = 90; Restart = "always"; - RestartSec = "1s"; + RestartSec = "5s"; User = user; Group = group; SyslogIdentifier = "microvm@%i";