mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-16 05:43:10 +01:00
25 lines
510 B
Nix
25 lines
510 B
Nix
{ config, ... }:
|
|
{
|
|
networking = {
|
|
hostName = "falkenstein-1";
|
|
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 = "ipv4";
|
|
IPv6AcceptRA = "yes";
|
|
Address = "2a01:4f8:c012:49de::1/64";
|
|
Gateway = "fe80::1";
|
|
};
|
|
};
|
|
};
|
|
}
|