dotfiles/nixos/systems/gooseberry/networking.nix
Magic_RB d27a09b0ab
Enable connecting to blowhole over IPMI on gooseberry
Signed-off-by: Magic_RB <magic_rb@redalder.org>
2023-07-19 01:50:41 +02:00

22 lines
452 B
Nix

{ pkgs, lib, secret, ... }:
let
in
{
networking = {
hostName = "gooseberry";
useDHCP = false;
interfaces.eth0.useDHCP = true;
firewall.enable = true;
interfaces."eth1".ipv4.addresses = [{
address = secret.network.ips.gooseberry.ipmi or "";
prefixLength = 30;
}];
};
services.udev.extraRules = ''
ATTR{address}=="b8:27:eb:ef:f4:c3", NAME="eth0"
ATTR{address}=="c8:4d:44:21:27:17", NAME="eth1"
'';
}