From 5ff11b11d8cdcae6c4739f46a8abb3bad325ef26 Mon Sep 17 00:00:00 2001 From: Leonhard Kost Date: Sat, 31 Jan 2026 18:20:14 +0100 Subject: [PATCH] feat: add hardware config for server --- nixos/server/hardware-configuration.nix | 33 +++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 nixos/server/hardware-configuration.nix diff --git a/nixos/server/hardware-configuration.nix b/nixos/server/hardware-configuration.nix new file mode 100644 index 0000000..696aa21 --- /dev/null +++ b/nixos/server/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 = [ "xhci_pci" "ahci" "usbhid" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/e9aebe22-0d9f-460f-a576-f1c44f6050b0"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/4705-B811"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/a81582c7-be0f-4070-b3e8-64e24b8483d2"; } + ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}