Configure IPv6 (and static IPs) for audio host

This commit is contained in:
June 2023-10-09 23:48:31 +02:00
parent 3ee198bc10
commit 534db2a68f
2 changed files with 23 additions and 0 deletions

View file

@ -2,6 +2,7 @@
{
imports = [
./configuration.nix
./networking.nix
./shairport-sync.nix
];
}

View file

@ -0,0 +1,22 @@
{ config, pkgs, ... }:
{
networking.interfaces.net0 = {
ipv4.addresses = [
{
address = "10.31.210.10";
prefixLength = 25;
}
];
ipv6.addresses = [
{
address = "2a07:c480:0:1d2:0000:0000:1000:000a";
prefixLength = 64;
}
];
};
systemd.network.links."10-net0" = {
matchConfig.MACAddress = "1E:EF:2D:92:81:DA";
linkConfig.Name = "net0";
};
}