26 lines
533 B
Nix
26 lines
533 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
../../modules/common.nix
|
|
../../modules/gateway.nix
|
|
];
|
|
|
|
networking.hostName = "gateway";
|
|
networking.useDHCP = false;
|
|
networking.interfaces.ens18.ipv4.addresses = [
|
|
{
|
|
address = "10.202.82.3";
|
|
prefixLength = 24;
|
|
}
|
|
{
|
|
address = "10.202.82.4";
|
|
prefixLength = 24;
|
|
}
|
|
];
|
|
networking.defaultGateway = "10.202.82.1";
|
|
networking.nameservers = [ "10.202.82.3" "10.202.82.4" ];
|
|
|
|
system.stateVersion = "25.05";
|
|
} |