forked from CCCHH/nix-infra
Configure IPv6 (and static IPs) for audio host
This commit is contained in:
parent
3ee198bc10
commit
534db2a68f
2 changed files with 23 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
{
|
||||
imports = [
|
||||
./configuration.nix
|
||||
./networking.nix
|
||||
./shairport-sync.nix
|
||||
];
|
||||
}
|
||||
|
|
22
config/hosts/audio/networking.nix
Normal file
22
config/hosts/audio/networking.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue