sid.ovh/hosts/vde/networking.nix
sid bca37c6ed7
All checks were successful
Build hosts / build-hosts (pull_request) Successful in 19s
Flake check / flake-check (pull_request) Successful in 19s
vde: fix networking
2026-04-19 00:56:32 +02:00

31 lines
640 B
Nix

{ constants, ... }:
{
networking = {
nameservers = [ constants.hosts.sid.ip ];
networkmanager.ensureProfiles.profiles = {
enp34s0-profile = {
connection = {
id = "enp34s0";
type = "ethernet";
interface-name = "enp34s0";
};
ipv4 = {
method = "auto";
route-metric = 50;
};
};
enp36s0-profile = {
connection = {
id = "enp36s0";
type = "ethernet";
interface-name = "enp36s0";
};
ipv4 = {
method = "auto";
route-metric = 200;
};
};
};
};
}