From 55baa57ebc45bc358d4c5f06aa08a9bb35eceb3c Mon Sep 17 00:00:00 2001 From: Tyler Mayoff Date: Sat, 29 Nov 2025 11:24:38 -0500 Subject: [PATCH] hardware-config --- .../saffron/hardware-configuration.nix | 42 ++++--------------- 1 file changed, 7 insertions(+), 35 deletions(-) diff --git a/dot_config/flake/machines/saffron/hardware-configuration.nix b/dot_config/flake/machines/saffron/hardware-configuration.nix index a55cc69..4b798d2 100644 --- a/dot_config/flake/machines/saffron/hardware-configuration.nix +++ b/dot_config/flake/machines/saffron/hardware-configuration.nix @@ -1,39 +1,11 @@ -# 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. -{ - lib, - modulesPath, - ... -}: { - imports = [ - (modulesPath + "/profiles/qemu-guest.nix") - ]; - - boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk"]; - boot.initrd.kernelModules = []; - boot.kernelModules = ["kvm-intel"]; - boot.extraModulePackages = []; - +{modulesPath, ...}: { + imports = [(modulesPath + "/profiles/qemu-guest.nix")]; + boot.loader.grub.device = "/dev/vda"; + boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi"]; + boot.initrd.kernelModules = ["nvme"]; fileSystems."/" = { - device = "/dev/disk/by-uuid/50f54744-19c2-4119-8ff5-c64917c5e5d2"; + device = "/dev/vda1"; fsType = "ext4"; }; - - fileSystems."/boot" = { - device = "/dev/disk/by-uuid/301D-B62F"; - fsType = "vfat"; - options = ["fmask=0077" "dmask=0077"]; - }; - - swapDevices = []; - - # Enables DHCP on each ethernet and wireless interface. In case of scripted networking - # (the default) this is the recommended approach. When using systemd-networkd it's - # still possible to use this option, but it's recommended to use it in conjunction - # with explicit per-interface declarations with `networking.interfaces..useDHCP`. - networking.useDHCP = lib.mkDefault true; - # networking.interfaces.ens3.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + swapDevices = [{device = "/dev/vdb";}]; }