forked from clan/clan-core
zerotier-peers: use halalified package
This commit is contained in:
parent
c4bbdb2212
commit
88cd52fd0f
@ -2,7 +2,7 @@
|
|||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
self,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@ -65,9 +65,7 @@ in
|
|||||||
serviceConfig.ExecStart = pkgs.writeScript "static-zerotier-peers-autoaccept" ''
|
serviceConfig.ExecStart = pkgs.writeScript "static-zerotier-peers-autoaccept" ''
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
${lib.concatMapStringsSep "\n" (host: ''
|
${lib.concatMapStringsSep "\n" (host: ''
|
||||||
${
|
${self.packages.${pkgs.system}.zerotier-members}/bin/zerotier-members allow --member-ip ${host}
|
||||||
inputs.clan-core.packages.${pkgs.system}.zerotier-members
|
|
||||||
}/bin/zerotier-members allow --member-ip ${host}
|
|
||||||
'') hosts}
|
'') hosts}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user