summary refs log tree commit diff
path: root/machines/serpentine/hardware.nix
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2025-08-30 00:46:02 +0200
committerMel <mel@rnrd.eu>2025-08-30 00:46:02 +0200
commitd0d378fb7b3555245f379482930101067bcc7c90 (patch)
tree7ff02ac931e11d505cc0cc338b2ffca1cb790f13 /machines/serpentine/hardware.nix
parentb6d118f2f79c630ea8be635ad2239fc77e45e6db (diff)
downloadminerals-d0d378fb7b3555245f379482930101067bcc7c90.tar.zst
minerals-d0d378fb7b3555245f379482930101067bcc7c90.zip
Upgrade serpentine to new bare metal NUC host
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'machines/serpentine/hardware.nix')
-rw-r--r--machines/serpentine/hardware.nix49
1 files changed, 33 insertions, 16 deletions
diff --git a/machines/serpentine/hardware.nix b/machines/serpentine/hardware.nix
index 80b22ba..4bad1bf 100644
--- a/machines/serpentine/hardware.nix
+++ b/machines/serpentine/hardware.nix
@@ -1,28 +1,44 @@
 # 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, ... }:
+{
+  config,
+  lib,
+  pkgs,
+  modulesPath,
+  ...
+}:
 
 {
-  imports =
-    [ (modulesPath + "/profiles/qemu-guest.nix")
-    ];
+  imports = [
+    (modulesPath + "/installer/scan/not-detected.nix")
+  ];
 
-  boot.initrd.availableKernelModules = [ "ata_piix" "virtio_pci" "virtio_scsi" "sd_mod" "virtio_blk" ];
+  boot.initrd.availableKernelModules = [
+    "xhci_pci"
+    "ahci"
+    "usb_storage"
+    "usbhid"
+    "sd_mod"
+    "sr_mod"
+  ];
   boot.initrd.kernelModules = [ ];
-  boot.kernelModules = [ "kvm-amd" ];
+  boot.kernelModules = [ "kvm-intel" ];
   boot.extraModulePackages = [ ];
 
-  fileSystems."/" =
-    { device = "/dev/disk/by-uuid/6f4738f1-ccb0-4976-8d83-177fd6eafa28";
-      fsType = "ext4";
-    };
+  fileSystems."/" = {
+    device = "/dev/disk/by-uuid/c278f114-1113-46cf-a431-f9afe0d06974";
+    fsType = "ext4";
+  };
 
-  fileSystems."/boot" =
-    { device = "/dev/disk/by-uuid/0656-5677";
-      fsType = "vfat";
-      options = [ "fmask=0077" "dmask=0077" ];
-    };
+  fileSystems."/boot" = {
+    device = "/dev/disk/by-uuid/409F-1FE4";
+    fsType = "vfat";
+    options = [
+      "fmask=0077"
+      "dmask=0077"
+    ];
+  };
 
   swapDevices = [ ];
 
@@ -31,7 +47,8 @@
   # still possible to use this option, but it's recommended to use it in conjunction
   # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
   networking.useDHCP = lib.mkDefault true;
-  # networking.interfaces.ens2.useDHCP = lib.mkDefault true;
+  # networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
 
   nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+  hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
 }