mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 15:43:55 -05:00
18 lines
295 B
Nix
18 lines
295 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
options = {
|
|
alyraffauf.services.tailscale.enable = lib.mkEnableOption "Enable Tailscale";
|
|
};
|
|
|
|
config = lib.mkIf config.alyraffauf.services.tailscale.enable {
|
|
services.tailscale = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
};
|
|
};
|
|
}
|