diff --git a/modules/services/espanso.nix b/modules/services/espanso.nix index 7ee79b221760..00136c83fed2 100644 --- a/modules/services/espanso.nix +++ b/modules/services/espanso.nix @@ -121,9 +121,9 @@ in { systemd.user.services.espanso = { Unit = { Description = "Espanso: cross platform text expander in Rust"; }; Service = { - Type = "exec"; ExecStart = "${cfg.package}/bin/espanso launcher"; Restart = "on-failure"; + RestartSec = 3; # Sandboxing. LockPersonality = true; diff --git a/tests/modules/services/espanso/basic-configuration.service b/tests/modules/services/espanso/basic-configuration.service index 822459e96fb5..998d9dcff848 100644 --- a/tests/modules/services/espanso/basic-configuration.service +++ b/tests/modules/services/espanso/basic-configuration.service @@ -8,10 +8,10 @@ MemoryDenyWriteExecute=true NoNewPrivileges=true PrivateUsers=true Restart=on-failure +RestartSec=3 RestrictNamespaces=true SystemCallArchitectures=native SystemCallFilter=@system-service -Type=exec [Unit] Description=Espanso: cross platform text expander in Rust