~cyplo/dotfiles

ref: 077d5b46ab8e0f39f9ff80865df09e222dc4d01a dotfiles/nixos/tailscale.nix -rw-r--r-- 381 bytes
077d5b46 — Cyryl Płotnicki nvidia drivers for foureighty 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ 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 ];
  };
}