Skip to content

Commit

Permalink
espanso: remove Type and add RestartExec
Browse files Browse the repository at this point in the history
  • Loading branch information
talal committed Oct 12, 2024
1 parent e4fe675 commit f1dc88d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/services/espanso.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tests/modules/services/espanso/basic-configuration.service
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f1dc88d

Please sign in to comment.