23 lines
440 B
Nix
23 lines
440 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
module.cluster.services.tinc = {
|
|
"private" = {
|
|
enable = true;
|
|
openPort = true;
|
|
connectTo = [ "robi" ];
|
|
};
|
|
"retiolum" = {
|
|
enable = true;
|
|
openPort = true;
|
|
};
|
|
};
|
|
|
|
sops.secrets.tinc_retiolum_ed25519_key = { };
|
|
sops.secrets.tinc_retiolum_rsa_key = { };
|
|
|
|
users.users."tinc.retiolum".group = "tinc.retiolum";
|
|
users.groups."tinc.retiolum" = { };
|
|
}
|