mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
networkd for the nuc
This commit is contained in:
parent
db9760072f
commit
1dfcdd7d7c
3 changed files with 23 additions and 9 deletions
21
hosts/nuc/modules/networks/default.nix
Normal file
21
hosts/nuc/modules/networks/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue