krebs.tinc: don't bother aliasing packages
This commit is contained in:
parent
5410c7dccc
commit
018018e16b
@ -237,15 +237,14 @@ let
|
||||
}
|
||||
) config.krebs.tinc;
|
||||
|
||||
krebs.systemd.services = mapAttrs (netname: cfg:
|
||||
let
|
||||
tinc = cfg.tincPackage;
|
||||
iproute = cfg.iproutePackage;
|
||||
in {
|
||||
krebs.systemd.services = mapAttrs (netname: cfg: {
|
||||
description = "Tinc daemon for ${netname}";
|
||||
after = [ "network.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
path = [ tinc iproute ];
|
||||
path = [
|
||||
cfg.iproutePackage
|
||||
cfg.tincPackage
|
||||
];
|
||||
reloadIfChanged = true;
|
||||
restartTriggers = [ cfg.confDir ];
|
||||
serviceConfig = {
|
||||
@ -257,7 +256,7 @@ let
|
||||
];
|
||||
Restart = "always";
|
||||
ExecStart = toString [
|
||||
"${tinc}/sbin/tincd"
|
||||
"${cfg.tincPackage}/sbin/tincd"
|
||||
"-D"
|
||||
"-U ${cfg.user.name}"
|
||||
"-c /etc/tinc/${netname}"
|
||||
@ -268,10 +267,9 @@ let
|
||||
"-o PrivateKeyFile=\${CREDENTIALS_DIRECTORY}/rsa_key"
|
||||
"--pidfile=/var/run/tinc.${netname}.pid"
|
||||
];
|
||||
ExecReload = "${tinc}/sbin/tinc -n ${netname} reload";
|
||||
ExecReload = "${cfg.tincPackage}/sbin/tinc -n ${netname} reload";
|
||||
SyslogIdentifier = netname;
|
||||
};
|
||||
}
|
||||
) config.krebs.tinc;
|
||||
}) config.krebs.tinc;
|
||||
};
|
||||
in out
|
||||
|
Loading…
Reference in New Issue
Block a user