mirror of
https://github.com/ivabus/nixos
synced 2024-11-21 16:05:07 +03:00
yggdrasil-roles: run nixfmt
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
This commit is contained in:
parent
0375a858ec
commit
b761ec24d1
2 changed files with 6 additions and 10 deletions
|
@ -9,8 +9,7 @@ in {
|
|||
services.yggdrasil = {
|
||||
enable = true;
|
||||
persistentKeys = true;
|
||||
settings =
|
||||
{
|
||||
settings = {
|
||||
# Not connecting to global ygg network
|
||||
Peers = lib.mkDefault [
|
||||
"quic://${secrets.yggdrasil-peer}:60003?password=${secrets.yggdrasil-password}"
|
||||
|
|
|
@ -6,18 +6,15 @@ in {
|
|||
lib.mkEnableOption "Enable yggdrasil (semi-public) peer";
|
||||
config = lib.mkIf (cfg.enable) {
|
||||
my.features.secrets = lib.mkForce true;
|
||||
my.roles.yggdrasil-client.enable = true;
|
||||
my.roles.yggdrasil-client.enable = true;
|
||||
services.yggdrasil = {
|
||||
enable = true;
|
||||
persistentKeys = true;
|
||||
settings =
|
||||
{
|
||||
settings = {
|
||||
# Not connecting to global ygg network
|
||||
Peers = lib.mkForce [];
|
||||
Listen = [
|
||||
Peers = lib.mkForce [ ];
|
||||
Listen = [
|
||||
"quic://[::]:60003?password=${secrets.yggdrasil-password}"
|
||||
"tls://[::]:60002?password=${secrets.yggdrasil-password}"
|
||||
];
|
||||
];
|
||||
};
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [ 60002 ];
|
||||
|
|
Loading…
Reference in a new issue