fix[client]: stop anki from halting shutdown

This commit is contained in:
Leon Schwarzäugl 2025-10-21 21:37:42 +02:00
parent 723ce403b2
commit 8813fb5117
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
2 changed files with 40 additions and 28 deletions

View file

@ -13555,6 +13555,8 @@ The `extraConfig` section here CANNOT be reindented. This has something to do wi
***** anki service for tray
Sets up a systemd user service for anki that does not stall the shutdown process. Note that the outcommented =ExecStart= does not work because the home-manager anki package builds a separate anki package that - I think - cannot be referenced as no such expression exists in the module.
#+begin_src nix-ts :tangle modules/home/common/anki-tray.nix
{ lib, config, ... }:
{
@ -13578,10 +13580,15 @@ The `extraConfig` section here CANNOT be reindented. This has something to do wi
Service = {
# ExecStart = "${lib.getExe config.programs.anki.package}";
ExecStart = "/etc/profiles/per-user/swarsel/bin/anki";
Type = "simple";
ExecStart = "/etc/profiles/per-user/${config.swarselsystems.mainUser}/bin/anki";
Environment = [
"QT_QPA_PLATFORM=xcb"
];
TimeoutStopSec = "2s";
KillMode = "mixed";
KillSignal = "SIGTERM";
SendSIGKILL = "yes";
};
};

View file

@ -20,10 +20,15 @@
Service = {
# ExecStart = "${lib.getExe config.programs.anki.package}";
ExecStart = "/etc/profiles/per-user/swarsel/bin/anki";
Type = "simple";
ExecStart = "/etc/profiles/per-user/${config.swarselsystems.mainUser}/bin/anki";
Environment = [
"QT_QPA_PLATFORM=xcb"
];
TimeoutStopSec = "2s";
KillMode = "mixed";
KillSignal = "SIGTERM";
SendSIGKILL = "yes";
};
};