Services: add tailscale, kuma, vw and forgejo to Theia

This commit is contained in:
blahai 2025-01-26 23:22:46 +02:00
parent dcd2d8adab
commit 057582d665
No known key found for this signature in database
10 changed files with 168 additions and 5 deletions

View file

@ -0,0 +1,33 @@
{
lib,
pkgs,
config,
...
}: let
inherit (lib.modules) mkIf mkDefault;
inherit (lib.options) mkEnableOption;
inherit (config.services) tailscale;
sys = config.olympus.system.networking;
cfg = sys.tailscale;
in {
options.olympus.system.networking.tailscale = {
enable = mkEnableOption "Tailscale";
};
config = mkIf cfg.enable {
environment.systemPackages = [pkgs.tailscale];
networking.firewall = {
# always allow traffic from your Tailscale network
trustedInterfaces = ["${tailscale.interfaceName}"];
checkReversePath = "loose";
};
services.tailscale = {
enable = true;
openFirewall = true;
useRoutingFeatures = mkDefault "server";
};
};
}