2019-10-24 02:20:38 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
2020-01-07 05:47:25 +01:00
|
|
|
|
2019-10-24 02:20:38 +02:00
|
|
|
module.cluster.services.tinc = {
|
|
|
|
"private" = {
|
2020-01-08 02:37:15 +01:00
|
|
|
enable = true;
|
2019-10-24 02:20:38 +02:00
|
|
|
openPort = true;
|
2021-12-28 16:19:29 +01:00
|
|
|
connectTo = [ "sputnik" "robi" ];
|
2019-10-24 02:20:38 +02:00
|
|
|
};
|
|
|
|
"retiolum" = {
|
|
|
|
enable = true;
|
|
|
|
openPort = true;
|
|
|
|
};
|
2021-03-05 08:22:35 +01:00
|
|
|
"secret" = {
|
2020-02-03 03:38:22 +01:00
|
|
|
enable = true;
|
|
|
|
openPort = true;
|
|
|
|
connectTo = [ "sputnik" ];
|
|
|
|
};
|
2019-10-24 02:20:38 +02:00
|
|
|
};
|
2022-01-15 09:32:59 +01:00
|
|
|
|
|
|
|
sops.secrets.tinc_retiolum_ed25519_key = { };
|
|
|
|
sops.secrets.tinc_retiolum_rsa_key = { };
|
|
|
|
|
2022-01-13 13:40:18 +01:00
|
|
|
users.users."tinc.retiolum".group = "tinc.retiolum";
|
|
|
|
users.groups."tinc.retiolum" = { };
|
2022-01-15 09:32:59 +01:00
|
|
|
|
2022-01-13 13:40:18 +01:00
|
|
|
users.users."tinc.secret".group = "tinc.secret";
|
|
|
|
users.groups."tinc.secret" = { };
|
2019-10-24 02:20:38 +02:00
|
|
|
|
|
|
|
}
|