add tailscale
This commit is contained in:
parent
e85ece0859
commit
d790d3ba3e
4 changed files with 26 additions and 0 deletions
19
modules/tailscale.nix
Normal file
19
modules/tailscale.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue