mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 21:33:11 +01:00
22 lines
420 B
Nix
22 lines
420 B
Nix
|
{ config, ... }:
|
||
|
{
|
||
|
networking = {
|
||
|
hostName = "nuc"; # Define your hostname.
|
||
|
hostId = "795a4952";
|
||
|
useNetworkd = true;
|
||
|
};
|
||
|
systemd.network = {
|
||
|
enable = true;
|
||
|
networks."10-loopback" = {
|
||
|
matchConfig.Name = "lo";
|
||
|
linkConfig.RequiredForOnline = false;
|
||
|
};
|
||
|
networks."10-wired" = {
|
||
|
matchConfig.Name = "eno1";
|
||
|
networkConfig = {
|
||
|
DHCP = "yes";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|