mirror of
https://github.com/ivabus/nixos
synced 2024-11-10 02:25:18 +03:00
20 lines
453 B
Nix
20 lines
453 B
Nix
{ config, lib, ... }:
|
|
|
|
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"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|