dotfiles/nixos/tailscale.nix
Cyryl Płotnicki fe4d30f651 nixpkgs-fmt
2021-11-22 19:32:26 +00:00

17 lines
380 B
Nix

{ config, pkgs, inputs, ... }:
let
tailscale = inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".tailscale;
in
{
environment.systemPackages = [ tailscale ];
services.tailscale = {
enable = true;
package = tailscale;
};
networking.firewall = {
trustedInterfaces = [ "tailscale0" ];
allowedUDPPorts = [ config.services.tailscale.port ];
};
}