diff --git a/hosts/apollo/configuration.nix b/hosts/apollo/configuration.nix index 2f6118a..0c1cc10 100644 --- a/hosts/apollo/configuration.nix +++ b/hosts/apollo/configuration.nix @@ -42,8 +42,8 @@ # Remote ZFS unlocking in initrd boot = { # Static IP in initrd - adjust these values for your network - # kernelParams = [ "ip=::::::none" ]; - + kernelParams = [ "ip=152.53.152.129::152.53.152.1:255.255.252.0::ens3:none" ]; + initrd = { # Network driver for initrd - change to match your hardware # Common options: "virtio_pci" (VMs), "e1000e", "igb", "r8169" @@ -98,21 +98,20 @@ ]; }; - # Static networking (if needed for VPS) - # networking = { - # useDHCP = false; - # interfaces.ens3 = { - # useDHCP = false; - # ipv4.addresses = [{ - # address = ""; - # prefixLength = ; - # }]; - # ipv6.addresses = [{ - # address = ""; - # prefixLength = ; - # }]; - # }; - # defaultGateway = ""; - # defaultGateway6 = { address = ""; interface = "ens3"; }; - # }; + networking = { + useDHCP = false; + interfaces.ens3 = { + useDHCP = false; + ipv4.addresses = [{ + address = "152.53.152.129"; + prefixLength = 22; + }]; + ipv6.addresses = [{ + address = "2a00:11c0:47:3b2a::1"; + prefixLength = 64; + }]; + }; + defaultGateway = "152.53.152.1"; + defaultGateway6 = { address = "fe80::1"; interface = "ens3"; }; + }; }