nixos-configs/nixos/tailscale.nix

21 lines
406 B
Nix
Raw Normal View History

2024-10-27 11:23:20 +00:00
{
pkgs,
config,
lib,
...
}: let
cfg = config.pim.tailscale;
in {
options.pim.tailscale.enable = lib.mkEnableOption "tailscale";
config = lib.mkIf cfg.enable {
environment.systemPackages = [pkgs.gnomeExtensions.tailscale-status];
2024-10-26 18:24:13 +00:00
2024-10-27 11:23:20 +00:00
services.tailscale = {
enable = true;
useRoutingFeatures = "client";
};
2024-10-26 18:24:13 +00:00
2024-10-27 11:23:20 +00:00
networking.networkmanager.unmanaged = ["tailscale0"];
};
2024-10-26 18:24:13 +00:00
}