More streamlining of modules

This commit is contained in:
Greg Hellings
2024-02-09 14:38:11 -06:00
committed by greg-compass
parent 2107ca3e09
commit c228f8b72d
18 changed files with 101 additions and 99 deletions
+18
View File
@@ -0,0 +1,18 @@
{ lib, config, ... }:
let
cfg = config.greg.tailscale;
in {
options = {
greg.tailscale.enable = lib.mkEnableOption "Enable Tailscale";
};
config = lib.mkIf cfg.enable {
services.tailscale.enable = true;
networking.firewall.checkReversePath = "loose";
boot.kernel.sysctl = {
"net.ipv4.ip_forward" = "1";
"net.ipv6.conf.all.forwarding" = "1";
};
};
}