1
0

profiles/router: Migrate configuration to profile

This commit is contained in:
2025-05-08 16:17:26 +02:00
parent fa1220dcf8
commit ced991b911
7 changed files with 31 additions and 19 deletions

View File

@@ -14,6 +14,7 @@
./mercury-vm
./netcup
./network-fallback-dhcp
./router
./ruby-vm
./serial-console
./wg-clerie

View File

@@ -0,0 +1,26 @@
{ config, lib, pkgs, ... }:
with lib;
{
options.profiles.clerie.router = {
enable = mkEnableOption "Basic router setup";
};
config = mkIf config.profiles.clerie.router.enable {
environment.systemPackages = with pkgs; [
wireguard-tools
tcpdump
];
boot.kernel.sysctl = {
"net.ipv4.ip_forward" = true;
"net.ipv6.conf.all.forwarding" = true;
};
networking.firewall.checkReversePath = false;
};
}