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 = {
enable = true;
persistentKeys = true;
settings =
{
settings = {
# Not connecting to global ygg network
Peers = lib.mkDefault [
"quic://${secrets.yggdrasil-peer}:60003?password=${secrets.yggdrasil-password}"

View file

@ -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 ];