diff --git a/modules/services/transmission.nix b/modules/services/transmission.nix index 89f2a00..0a6f9dd 100644 --- a/modules/services/transmission.nix +++ b/modules/services/transmission.nix @@ -74,10 +74,7 @@ in { systemd.services.transmission-creds = { requiredBy = [ "transmission.service" ]; before = [ "transmission.service" ]; - serviceConfig = { - Type = "oneshot"; - RemainAfterExit = true; - }; + serviceConfig = { Type = "oneshot"; }; script = '' if [ ! -f "${credentialsFile}" ]; then mkdir --parents ${builtins.dirOf credentialsFile} diff --git a/modules/services/wireguard.nix b/modules/services/wireguard.nix index 96bb196..4b437b9 100644 --- a/modules/services/wireguard.nix +++ b/modules/services/wireguard.nix @@ -46,10 +46,7 @@ wantedBy = [ "wireguard-wg0.service" ]; requiredBy = [ "wireguard-wg0.service" ]; before = [ "wireguard-wg0.service" ]; - serviceConfig = { - Type = "oneshot"; - RemainAfterExit = true; - }; + serviceConfig = { Type = "oneshot"; }; script = let encryptedPrivateKey = config.networking.wireguard.encryptedPrivateKey; privateKeyFile =