mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 13:23:11 +01:00
22 lines
394 B
Nix
22 lines
394 B
Nix
{ config, ... }:
|
|
{
|
|
networking = {
|
|
hostName = "nuc";
|
|
useNetworkd = true;
|
|
enableIPv6 = true;
|
|
};
|
|
systemd.network = {
|
|
enable = true;
|
|
networks."10-loopback" = {
|
|
matchConfig.Name = "lo";
|
|
linkConfig.RequiredForOnline = false;
|
|
};
|
|
networks."10-wired" = {
|
|
matchConfig.Name = "ens3";
|
|
networkConfig = {
|
|
DHCP = "yes";
|
|
};
|
|
};
|
|
};
|
|
}
|