nixos/roles/yggdrasil-client.nix

19 lines
450 B
Nix
Raw Normal View History

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