2023-08-22 19:39:11 +03:00
|
|
|
{ config, lib, ... }:
|
2023-07-28 15:39:50 +03:00
|
|
|
|
2023-09-06 16:10:11 +03:00
|
|
|
let cfg = config.my.roles.yggdrasil-client;
|
2023-08-22 19:39:11 +03:00
|
|
|
in {
|
2023-09-06 16:10:11 +03:00
|
|
|
options.my.roles.yggdrasil-client.enable =
|
|
|
|
lib.mkEnableOption "Enable yggdrasil";
|
2023-08-22 19:39:11 +03:00
|
|
|
config = lib.mkIf (cfg.enable) {
|
|
|
|
services.yggdrasil = {
|
|
|
|
enable = true;
|
|
|
|
persistentKeys = true;
|
|
|
|
settings = {
|
|
|
|
Peers = [
|
2023-08-24 11:06:09 +03:00
|
|
|
# TODO: Maybe add more peers, not only mine. But for now it's ok
|
2023-08-22 19:39:11 +03:00
|
|
|
"tls://ygg.iva.bz:50002"
|
|
|
|
];
|
|
|
|
};
|
2023-07-28 15:39:50 +03:00
|
|
|
};
|
|
|
|
};
|
2023-09-06 16:10:11 +03:00
|
|
|
}
|