mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-09 23:22:57 +00:00
set credentials oneshots to stop after launch
This commit is contained in:
parent
c2d0037bab
commit
a17a048d9d
@ -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}
|
||||
|
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user