diff --git a/config/hosts/audio/default.nix b/config/hosts/audio/default.nix index 619f28d..421557a 100644 --- a/config/hosts/audio/default.nix +++ b/config/hosts/audio/default.nix @@ -2,6 +2,7 @@ { imports = [ ./configuration.nix + ./networking.nix ./shairport-sync.nix ]; } diff --git a/config/hosts/audio/networking.nix b/config/hosts/audio/networking.nix new file mode 100644 index 0000000..a109ecf --- /dev/null +++ b/config/hosts/audio/networking.nix @@ -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"; + }; +}