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