Move modules to shared

This commit is contained in:
Greg Hellings
2023-12-29 23:36:40 -06:00
parent 5955faa0e2
commit 5dad72c5cd
21 changed files with 22 additions and 14 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";
};
};
}