diff options
| author | caley <195605706+cqley@users.noreply.github.com> | 2026-07-24 03:06:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-24 03:06:08 +0200 |
| commit | 2f1361ddb829251db4d41034763e49b62a4162a2 (patch) | |
| tree | ddd9496760820a5c34dd9373ac2bd0af87f690f6 /nixos | |
| parent | 1a1fcbc9cedecda74675e9127598f1beddb5311f (diff) | |
Update hardware-configuration.nix
Diffstat (limited to 'nixos')
| -rw-r--r-- | nixos/hosts/bed/hardware-configuration.nix | 27 |
1 files changed, 27 insertions, 0 deletions
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; +} |
