Add yoga to tinc
This commit is contained in:
parent
38c7afa96f
commit
fec7f40440
5 changed files with 53 additions and 6 deletions
|
@ -34,11 +34,6 @@ in
|
|||
default = 655;
|
||||
description = "The port to listen on";
|
||||
};
|
||||
|
||||
meshIp = mkOption {
|
||||
type = types.str;
|
||||
description = "The mesh ip to be assigned by hostname";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable (builtins.seq
|
||||
|
@ -51,7 +46,6 @@ in
|
|||
myMeshIp = myHost.subnetAddr;
|
||||
in
|
||||
{
|
||||
services.my-tinc.meshIp = myMeshIp;
|
||||
# Scripts that set up the tinc services
|
||||
environment.etc = {
|
||||
"tinc/${networkName}/tinc-up".source = pkgs.writeScript "tinc-up-${networkName}" ''
|
||||
|
|
|
@ -22,4 +22,9 @@
|
|||
subnetAddr = "11.0.0.4";
|
||||
ed25519PublicKey = "6MN5LVE4juavv8qJW2dTN4t/haKCADWquAQj/ADF7iN";
|
||||
};
|
||||
|
||||
yoga = {
|
||||
subnetAddr = "11.0.0.5";
|
||||
ed25519PublicKey = "n+gIZjuuTPxi0OBqw2oOcmXd3loOHG+GQHBMXNlgyqI";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue