From 81c83f6264e6800cb8024fe178f911e58e8a0225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20SALVI?= Date: Thu, 25 Sep 2025 23:24:52 +0200 Subject: [PATCH] copy hardware configuration to home-nix --- hosts/home-nix/disk-config.nix | 4 +++- hosts/home-nix/hardware-configuration.nix | 13 +++---------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/hosts/home-nix/disk-config.nix b/hosts/home-nix/disk-config.nix index 196c23e..53c7eb0 100644 --- a/hosts/home-nix/disk-config.nix +++ b/hosts/home-nix/disk-config.nix @@ -10,9 +10,10 @@ content = { type = "gpt"; partitions = { - ESP = { + EFI = { size = "512M"; type = "EF00"; + name = "EFI"; content = { type = "filesystem"; format = "vfat"; @@ -23,6 +24,7 @@ SYS = { size = "100%"; type = "8309"; + name = "SYS"; content = { type = "luks"; name = "rootfs"; diff --git a/hosts/home-nix/hardware-configuration.nix b/hosts/home-nix/hardware-configuration.nix index cdd437d..3a6bf54 100644 --- a/hosts/home-nix/hardware-configuration.nix +++ b/hosts/home-nix/hardware-configuration.nix @@ -5,21 +5,14 @@ { imports = - [ - (modulesPath + "/installer/scan/not-detected.nix") - (modulesPath + "/profiles/qemu-guest.nix") + [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ - "ahci" - "xhci_pci" - "virtio_pci" - "sr_mod" - "virtio_blk" - ]; + boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }