From 2f1361ddb829251db4d41034763e49b62a4162a2 Mon Sep 17 00:00:00 2001 From: caley <195605706+cqley@users.noreply.github.com> Date: Fri, 24 Jul 2026 03:06:08 +0200 Subject: Update hardware-configuration.nix --- nixos/hosts/bed/hardware-configuration.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/nixos/hosts/bed/hardware-configuration.nix b/nixos/hosts/bed/hardware-configuration.nix index 8b13789..158420a 100644 --- a/nixos/hosts/bed/hardware-configuration.nix +++ b/nixos/hosts/bed/hardware-configuration.nix @@ -1 +1,28 @@ +{ config, lib, pkgs, modulesPath, ... }: +{ + imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; + + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ "amdgpu" ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/e98b3077-156d-415c-bed0-a2f790ed63c6"; + fsType = "ext4"; + options = [ "noatime" ]; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/FCC2-2E30"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.enableRedistributableFirmware = true; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} -- cgit v1.3.1