feat(nix/tailscale): Add function for generating tailscale ACLs

... and use it on Camden!
This commit is contained in:
Vincent Ambo 2020-02-11 16:36:28 +00:00
parent 44b57d095b
commit df1a4fef2b
2 changed files with 27 additions and 1 deletions

View file

@ -100,8 +100,15 @@ in pkgs.lib.fix(self: {
services.tailscale = {
enable = true;
relayConf = "/etc/tailscale.conf";
aclFile = null; # allow all traffic for testing
package = pkgs.third_party.tailscale;
aclFile = pkgs.nix.tailscale [
# Allow any traffic from myself
{
Action = "accept";
Users = [ "mail@tazj.in" ];
Ports = [ "*:*" ];
}
];
};
system.stateVersion = "19.09";