nixos-config/nixos/configs/sternchen/tinc.nix
2022-02-07 19:13:27 +01:00

19 lines
282 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
module.cluster.services.tinc = {
"secret" = {
enable = true;
openPort = true;
connectTo = [ "sputnik" "robi" ];
};
};
users.users."tinc.secret".group = "tinc.secret";
users.groups."tinc.secret" = { };
}