# xlab-gateway - Lab Gateway / Router
# TODO: Migrate from Debian 12 to NixOS
# Current services: Kea DHCP4/6, DDNS, radvd, WireGuard, NAT, policy routing
{ config, pkgs, lib, ... }:
{
imports = [
./networking.nix
./dhcp.nix
];
networking.hostName = "xlab-gateway";
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
kernel.sysctl = {
"net.ipv4.ip_forward" = 1;
"net.ipv6.conf.all.forwarding" = 1;
};
};
users.users.ldx = {
extraGroups = [ "networkmanager" ];
};
environment.systemPackages = with pkgs; [
wireguard-tools
iperf3
ethtool
tcpdump
nftables
iproute2
glances
smartmontools
];
services.smartd = {
enable = true;
autodetect = true;
};
system.stateVersion = "25.11";
}