feat(nix/tailscale): Add function for generating tailscale ACLs
... and use it on Camden!
This commit is contained in:
parent
44b57d095b
commit
df1a4fef2b
2 changed files with 27 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue