mirror of
https://github.com/ivabus/nixos
synced 2024-11-10 02:25:18 +03:00
yggdrasil-roles: run nixfmt
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
This commit is contained in:
parent
0375a858ec
commit
b761ec24d1
|
@ -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}"
|
||||||
|
|
|
@ -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 ];
|
||||||
|
|
Loading…
Reference in a new issue