mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-30 12:06:13 +01:00
aff0158ef7
Signed-off-by: magic_rb <magic_rb@redalder.org>
27 lines
478 B
Nix
27 lines
478 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"
|
|
'';
|
|
}
|