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