mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-25 20:45:37 +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 = {
|
systemd.services.transmission-creds = {
|
||||||
requiredBy = [ "transmission.service" ];
|
requiredBy = [ "transmission.service" ];
|
||||||
before = [ "transmission.service" ];
|
before = [ "transmission.service" ];
|
||||||
serviceConfig = {
|
serviceConfig = { Type = "oneshot"; };
|
||||||
Type = "oneshot";
|
|
||||||
RemainAfterExit = true;
|
|
||||||
};
|
|
||||||
script = ''
|
script = ''
|
||||||
if [ ! -f "${credentialsFile}" ]; then
|
if [ ! -f "${credentialsFile}" ]; then
|
||||||
mkdir --parents ${builtins.dirOf credentialsFile}
|
mkdir --parents ${builtins.dirOf credentialsFile}
|
||||||
|
@ -46,10 +46,7 @@
|
|||||||
wantedBy = [ "wireguard-wg0.service" ];
|
wantedBy = [ "wireguard-wg0.service" ];
|
||||||
requiredBy = [ "wireguard-wg0.service" ];
|
requiredBy = [ "wireguard-wg0.service" ];
|
||||||
before = [ "wireguard-wg0.service" ];
|
before = [ "wireguard-wg0.service" ];
|
||||||
serviceConfig = {
|
serviceConfig = { Type = "oneshot"; };
|
||||||
Type = "oneshot";
|
|
||||||
RemainAfterExit = true;
|
|
||||||
};
|
|
||||||
script = let
|
script = let
|
||||||
encryptedPrivateKey = config.networking.wireguard.encryptedPrivateKey;
|
encryptedPrivateKey = config.networking.wireguard.encryptedPrivateKey;
|
||||||
privateKeyFile =
|
privateKeyFile =
|
||||||
|
Loading…
Reference in New Issue
Block a user