Tailscale: add hosts
This commit is contained in:
parent
bd9be4c1d9
commit
4052a7730c
2 changed files with 17 additions and 0 deletions
|
|
@ -1,3 +1,8 @@
|
|||
{ lib, ... }:
|
||||
let
|
||||
hosts = import ../../../hosts.nix;
|
||||
tailscale_hosts = lib.attrsets.mapAttrs' (k: v: lib.attrsets.nameValuePair v [ k ]) hosts.tailscale.ipv4;
|
||||
in
|
||||
{
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
|
|
@ -5,4 +10,6 @@
|
|||
};
|
||||
|
||||
networking.firewall.checkReversePath = "loose";
|
||||
|
||||
networking.hosts = tailscale_hosts;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue