yggdrasil-roles: run nixfmt

Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
This commit is contained in:
Ivan Bushchik 2023-12-17 18:00:15 +03:00
parent 0375a858ec
commit b761ec24d1
No known key found for this signature in database
GPG key ID: 2F16FBF3262E090C
2 changed files with 6 additions and 10 deletions

View file

@ -9,8 +9,7 @@ in {
services.yggdrasil = { services.yggdrasil = {
enable = true; enable = true;
persistentKeys = true; persistentKeys = true;
settings = settings = {
{
# Not connecting to global ygg network # Not connecting to global ygg network
Peers = lib.mkDefault [ Peers = lib.mkDefault [
"quic://${secrets.yggdrasil-peer}:60003?password=${secrets.yggdrasil-password}" "quic://${secrets.yggdrasil-peer}:60003?password=${secrets.yggdrasil-password}"

View file

@ -6,18 +6,15 @@ in {
lib.mkEnableOption "Enable yggdrasil (semi-public) peer"; lib.mkEnableOption "Enable yggdrasil (semi-public) peer";
config = lib.mkIf (cfg.enable) { config = lib.mkIf (cfg.enable) {
my.features.secrets = lib.mkForce true; my.features.secrets = lib.mkForce true;
my.roles.yggdrasil-client.enable = true; my.roles.yggdrasil-client.enable = true;
services.yggdrasil = { services.yggdrasil = {
enable = true; settings = {
persistentKeys = true;
settings =
{
# Not connecting to global ygg network # Not connecting to global ygg network
Peers = lib.mkForce []; Peers = lib.mkForce [ ];
Listen = [ Listen = [
"quic://[::]:60003?password=${secrets.yggdrasil-password}" "quic://[::]:60003?password=${secrets.yggdrasil-password}"
"tls://[::]:60002?password=${secrets.yggdrasil-password}" "tls://[::]:60002?password=${secrets.yggdrasil-password}"
]; ];
}; };
}; };
networking.firewall.allowedTCPPorts = [ 60002 ]; networking.firewall.allowedTCPPorts = [ 60002 ];