From 1f0ec904c038d5821ee7fb975ccb76f78b095c8e Mon Sep 17 00:00:00 2001 From: rogueking Date: Mon, 22 Jun 2026 00:59:11 -0400 Subject: [PATCH] fixed network config for buildbox --- hosts/buildbox/configuration.nix | 9 +++++++++ hosts/buildbox/hardware-configuration.nix | 24 +++++++++++++---------- 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/hosts/buildbox/configuration.nix b/hosts/buildbox/configuration.nix index 4b59293..79a1be7 100644 --- a/hosts/buildbox/configuration.nix +++ b/hosts/buildbox/configuration.nix @@ -71,6 +71,15 @@ # Enable networking networking.networkmanager.enable = true; + networking.useDHCP = false; + networking.interfaces.ens18.ipv4.addresses = [ + { + address = "192.168.8.200"; + prefixLength = 24; # Subnet Mask + } + ]; + networking.defaultGateway = "192.168.8.1"; + networking.nameservers = ["192.168.8.1" "1.1.1.1"]; # Virtualisation virtualisation.docker.enable = true; diff --git a/hosts/buildbox/hardware-configuration.nix b/hosts/buildbox/hardware-configuration.nix index 2418c4a..4ed0dd5 100644 --- a/hosts/buildbox/hardware-configuration.nix +++ b/hosts/buildbox/hardware-configuration.nix @@ -1,17 +1,21 @@ # Do not modify this file! It was generated by ‘nixos-generate-config’ # and may be overwritten by future invocations. Please make changes # to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: - { - imports = - [ (modulesPath + "/profiles/qemu-guest.nix") - ]; + config, + lib, + pkgs, + modulesPath, + ... +}: { + imports = [ + (modulesPath + "/profiles/qemu-guest.nix") + ]; - boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ ]; - boot.extraModulePackages = [ ]; + boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod"]; + boot.initrd.kernelModules = []; + boot.kernelModules = []; + boot.extraModulePackages = []; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; -} \ No newline at end of file +}