diff options
| author | name <[email protected]> | 2026-10-19 00:20:37 +0200 |
|---|---|---|
| committer | name <[email protected]> | 2026-10-19 00:20:37 +0200 |
| commit | 4b4c8480309ad5e05d7335fa4de1b298cb991443 (patch) | |
| tree | d8b50902ed9f02da65ff59e0efb91f3cd1060f91 /hosts/diamond/hardware-configuration.nix | |
| parent | bd5dfe9ae945b6393849dd9a1aa61ce9b6d07039 (diff) | |
| download | nixos-4b4c8480309ad5e05d7335fa4de1b298cb991443.tar.xz nixos-4b4c8480309ad5e05d7335fa4de1b298cb991443.zip | |
added hardware configuration for diamond
Diffstat (limited to 'hosts/diamond/hardware-configuration.nix')
| -rw-r--r-- | hosts/diamond/hardware-configuration.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/hosts/diamond/hardware-configuration.nix b/hosts/diamond/hardware-configuration.nix new file mode 100644 index 0000000..42f2c05 --- /dev/null +++ b/hosts/diamond/hardware-configuration.nix @@ -0,0 +1,33 @@ +# 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, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/d6062366-8b36-43f7-b00a-8359c3822868"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/72D3-6380"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/585810f5-8b6c-49be-83b1-5ca61fa45083"; } + ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} |
