Networking

This commit is contained in:
Gene Liverman 2026-03-10 08:03:29 -04:00
parent 46c825d7a4
commit d09d68e986
No known key found for this signature in database
3 changed files with 11 additions and 46 deletions

View file

@ -1,9 +1,10 @@
{ pkgs, username, ... }: {
imports = [
./hardware-configuration.nix
./disk-config.nix
./post-install
../../common/linux/nixroutes.nix
./disk-config.nix
./hardware-configuration.nix
./post-install
inputs.private-flake.nixosModules.private.hetznix02
];
system.stateVersion = "24.05";
@ -52,31 +53,6 @@
'';
};
systemd.network = {
enable = true;
networks."10-wan" = {
matchConfig.Name = "enp1s0";
address = [
"195.201.224.89/32"
"2a01:4f8:1c1e:aa68::1/64"
"fe80::9400:3ff:feae:45aa/64"
];
dns = [
"185.12.64.1"
"185.12.64.2"
"2a01:4ff:ff00::add:1"
"2a01:4ff:ff00::add:2"
];
routes = [
{ Destination = "172.31.1.1"; }
{ Gateway = "172.31.1.1"; GatewayOnLink = true; }
{ Gateway = "fe80::1"; }
];
# make the routes on this interface a dependency for network-online.target
linkConfig.RequiredForOnline = "routable";
};
};
users.users.${username} = {
isNormalUser = true;
description = "Gene Liverman";