diff --git a/modules/services/sxhkd.nix b/modules/services/sxhkd.nix index e955d00b..cec453a0 100644 --- a/modules/services/sxhkd.nix +++ b/modules/services/sxhkd.nix @@ -75,7 +75,7 @@ in { sxhkdCommand = "${cfg.package}/bin/sxhkd ${toString cfg.extraOptions}"; in '' systemctl --user stop sxhkd.scope 2> /dev/null || true - systemd-cat -t sxhkd systemd-run --user --scope -u sxhkd ${sxhkdCommand} & + systemd-cat -t sxhkd systemd-run --user --scope --property=OOMPolicy=continue -u sxhkd ${sxhkdCommand} & ''; }; } diff --git a/tests/modules/services/sxhkd/service.nix b/tests/modules/services/sxhkd/service.nix index 84f3086a..5f49f7a5 100644 --- a/tests/modules/services/sxhkd/service.nix +++ b/tests/modules/services/sxhkd/service.nix @@ -21,6 +21,6 @@ 'systemctl --user stop sxhkd.scope 2> /dev/null || true' assertFileContains $xsessionFile \ - 'systemd-cat -t sxhkd systemd-run --user --scope -u sxhkd @sxhkd@/bin/sxhkd -m 1 &' + 'systemd-cat -t sxhkd systemd-run --user --scope --property=OOMPolicy=continue -u sxhkd @sxhkd@/bin/sxhkd -m 1 &' ''; }