33 lines
529 B
Nix
33 lines
529 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
inputs,
|
|
...
|
|
}: let
|
|
service = "tailscale";
|
|
cfg = config.darwin.${service};
|
|
in {
|
|
options.darwin.tailscale = {
|
|
enable = lib.mkEnableOption "enables tailscale";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
services.tailscale = {
|
|
enable = true;
|
|
#overrideLocalDns = true;
|
|
#authKeyFile = authkey_file;
|
|
};
|
|
|
|
# environment.systemPackages = with pkgs; [
|
|
# tailscale-gui
|
|
# ];
|
|
|
|
homebrew = {
|
|
casks = [
|
|
"tailscale-app"
|
|
];
|
|
};
|
|
};
|
|
}
|