mirror of
https://github.com/blahai/nyx.git
synced 2025-06-30 08:54:26 -04:00
Services: add tailscale, kuma, vw and forgejo to Theia
This commit is contained in:
parent
dcd2d8adab
commit
057582d665
10 changed files with 168 additions and 5 deletions
33
modules/nixos/networking/tailscale.nix
Normal file
33
modules/nixos/networking/tailscale.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue