20 lines
406 B
Nix
20 lines
406 B
Nix
{
|
|
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];
|
|
|
|
services.tailscale = {
|
|
enable = true;
|
|
useRoutingFeatures = "client";
|
|
};
|
|
|
|
networking.networkmanager.unmanaged = ["tailscale0"];
|
|
};
|
|
}
|