17 lines
350 B
Nix
17 lines
350 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
options = {
|
|
modules.system.tailscale.enable = lib.mkEnableOption "enables tailscale";
|
|
};
|
|
|
|
config = lib.mkIf config.modules.system.tailscale.enable {
|
|
services.tailscale = {
|
|
enable = true;
|
|
|
|
useRoutingFeatures = "both";
|
|
authKeyFile = "/home/blake/.nix/.keyring/tailscale/authkey";
|
|
};
|
|
};
|
|
}
|