nixos-config/machines/chungus/network-tinc-retiolum.nix

24 lines
659 B
Nix
Raw Normal View History

{
config,
factsGenerator,
pkgs,
...
}:
2023-07-05 20:43:59 +02:00
{
2024-06-19 13:19:55 +02:00
clan.core.facts.services.tinc_retiolum = factsGenerator.tinc { name = "retiolum"; };
2023-07-05 20:43:59 +02:00
networking.retiolum.port = 720;
2024-10-09 14:26:34 +02:00
networking.retiolum.nodename = "chungus";
healthchecks.localCommands.ping-retiolum = pkgs.writers.writeBash "ping-retiolum" ''
ping -c 1 -W 5 ${config.networking.retiolum.nodename}.r
'';
2023-07-05 20:43:59 +02:00
services.tinc.networks.retiolum = {
2024-08-29 03:26:04 +02:00
ed25519PrivateKeyFile =
config.clan.core.facts.services.tinc_retiolum.secret."tinc.retiolum.ed25519_key.priv".path;
rsaPrivateKeyFile =
config.clan.core.facts.services.tinc_retiolum.secret."tinc.retiolum.rsa_key.priv".path;
2023-07-05 20:43:59 +02:00
};
}