diff options
| author | beeb5k <beebeeb5k@gmail.com> | 2026-03-06 18:33:36 +0530 |
|---|---|---|
| committer | beeb5k <beebeeb5k@gmail.com> | 2026-03-06 18:33:36 +0530 |
| commit | f1de2014dcd426e015a2638222160d9d349ea4e5 (patch) | |
| tree | 0dadefde6445c6075b767823969e6a51409c374c /hosts/nixios/hardware-configuration.nix | |
Init
Diffstat (limited to 'hosts/nixios/hardware-configuration.nix')
| -rw-r--r-- | hosts/nixios/hardware-configuration.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/hosts/nixios/hardware-configuration.nix b/hosts/nixios/hardware-configuration.nix new file mode 100644 index 0000000..7e2a1c3 --- /dev/null +++ b/hosts/nixios/hardware-configuration.nix @@ -0,0 +1,49 @@ +# 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. + +# yes i did modify it. +{ + config, + lib, + pkgs, + modulesPath, + ... +}: +{ + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ + "nvme" + "xhci_pci" + "usb_storage" + "usbhid" + "sd_mod" + ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = { + device = "/dev/disk/by-label/NIXROOT"; + fsType = "ext4"; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-label/NIXBOOT"; + fsType = "vfat"; + options = [ + "fmask=0022" + "dmask=0022" + ]; + }; + + swapDevices = [ + { device = "/dev/disk/by-label/NIXSWAP"; } + ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} |
