From 1639675eac05a4d74491b688cd191ac66e9daa55 Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Sat, 15 Feb 2025 01:08:37 +0100 Subject: [PATCH] challenger: move to VM --- hosts/challenger/configuration.nix | 2 +- hosts/challenger/hardware-configuration.nix | 19 +++++-------------- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/hosts/challenger/configuration.nix b/hosts/challenger/configuration.nix index 906586c..7a66e00 100644 --- a/hosts/challenger/configuration.nix +++ b/hosts/challenger/configuration.nix @@ -26,7 +26,7 @@ networking = { hostName = "challenger"; - bridges.br0.interfaces = [ "enp5s0" ]; + bridges.br0.interfaces = [ "ens18" ]; interfaces.br0.useDHCP = false; interfaces.br0.ipv4.addresses = [ { address = "192.168.10.161"; prefixLength = 24; } diff --git a/hosts/challenger/hardware-configuration.nix b/hosts/challenger/hardware-configuration.nix index a9b26fb..1b7d258 100644 --- a/hosts/challenger/hardware-configuration.nix +++ b/hosts/challenger/hardware-configuration.nix @@ -1,31 +1,22 @@ -# 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 + "/installer/scan/not-detected.nix") + [ (modulesPath + "/profiles/qemu-guest.nix") ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ]; + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ]; boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-amd" ]; + boot.kernelModules = [ ]; boot.extraModulePackages = [ ]; - boot.kernelParams = [ - # https://wiki.gentoo.org/wiki/Ryzen#Ryzen_Threadripper - "processor.max_cstate=1" - "rcu_nocbs=0-11" - "idle=nomwait" - ]; fileSystems."/" = - { device = "/dev/disk/by-uuid/ea31d0ea-2949-420a-99ea-7f77c4b7091e"; + { device = "/dev/disk/by-uuid/7101364b-9056-4309-afeb-3c17b220684f"; fsType = "ext4"; }; fileSystems."/boot" = - { device = "/dev/disk/by-uuid/169B-94E2"; + { device = "/dev/disk/by-uuid/FDCE-A287"; fsType = "vfat"; options = [ "fmask=0077" "dmask=0077" ]; };