mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 13:43:56 -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;
|
|
};
|
|
};
|
|
}
|