mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-18 18:40:14 +01:00
20 lines
285 B
Nix
20 lines
285 B
Nix
|
{
|
||
|
pkgs,
|
||
|
config,
|
||
|
lib,
|
||
|
...
|
||
|
}: let
|
||
|
cfg = config.my.tailscale;
|
||
|
in {
|
||
|
options.my.tailscale = {
|
||
|
enable = lib.mkEnableOption "enable tailscale vpn";
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
services.tailscale = {
|
||
|
enable = true;
|
||
|
openFirewall = true;
|
||
|
};
|
||
|
};
|
||
|
}
|