nixos/pocket-id: fix force close on shutdown

This commit is contained in:
Moraxyc
2026-03-18 19:43:48 +08:00
parent dbae350787
commit d36ca2b839
@@ -213,15 +213,16 @@ in
settingsFile
];
script = ''
${exportAllCredentials cfg.credentials}
exec ${getExe cfg.package}
'';
serviceConfig = {
Type = "simple";
User = cfg.user;
Group = cfg.group;
WorkingDirectory = cfg.dataDir;
ExecStart = pkgs.writeShellScript "pocket-id-start" ''
${exportAllCredentials cfg.credentials}
${getExe cfg.package}
'';
Restart = "always";
RestartSec = 1;
EnvironmentFile = [