diff --git a/hosts/Garand-Desktop/system-modules.nix b/hosts/Garand-Desktop/system-modules.nix index a2db370..14d59ba 100644 --- a/hosts/Garand-Desktop/system-modules.nix +++ b/hosts/Garand-Desktop/system-modules.nix @@ -19,6 +19,11 @@ _: { gamescope.enable = false; # Gamescope: micro‑compositor for games steam.enable = true; # Steam: platform for buying and playing games + /* + Networking + */ + tailscale.enable = false; # Tailscale: secure network for remote access + packages = { /* Container & Packaging diff --git a/hosts/Garand-Laptop/system-modules.nix b/hosts/Garand-Laptop/system-modules.nix index 8e11b2d..84ba81b 100644 --- a/hosts/Garand-Laptop/system-modules.nix +++ b/hosts/Garand-Laptop/system-modules.nix @@ -12,6 +12,11 @@ _: { }; }; + /* + Networking + */ + tailscale.enable = false; # Tailscale: secure network for remote access + /* Gaming */ diff --git a/hosts/default/system-modules.nix b/hosts/default/system-modules.nix index 8e11b2d..84ba81b 100644 --- a/hosts/default/system-modules.nix +++ b/hosts/default/system-modules.nix @@ -12,6 +12,11 @@ _: { }; }; + /* + Networking + */ + tailscale.enable = false; # Tailscale: secure network for remote access + /* Gaming */ diff --git a/modules/core/default.nix b/modules/core/default.nix index d268fe9..7cf1607 100644 --- a/modules/core/default.nix +++ b/modules/core/default.nix @@ -19,6 +19,7 @@ ./stylix.nix ./syncthing.nix ./system.nix + ./tailscale.nix ./thunar.nix ./user.nix ./xdg.nix diff --git a/modules/core/tailscale.nix b/modules/core/tailscale.nix new file mode 100644 index 0000000..64ca350 --- /dev/null +++ b/modules/core/tailscale.nix @@ -0,0 +1,14 @@ +{ + pkgs, + config, + lib, + ... +}: { + options.tailscale.enable = lib.mkEnableOption "Tailscale"; + + config.services.tailscale = lib.mkIf config.tailscale.enable { + enable = true; + package = pkgs.tailscale; + openFirewall = true; + }; +}