diff options
| author | seraphim <18ycm9tx@anonaddy.me> | 2026-07-29 22:09:05 +0700 |
|---|---|---|
| committer | seraphim <18ycm9tx@anonaddy.me> | 2026-07-29 22:09:05 +0700 |
| commit | 73ddb338cd7542f9569a9ab5cb0481b4f0636710 (patch) | |
| tree | 559d8c542d6e965e674a46c9451efc1cb80f203a /nixos/modules/system/boot | |
| parent | abd12d161f0aaac458abeb139556ea5ccc1fcae8 (diff) | |
.
Diffstat (limited to 'nixos/modules/system/boot')
| -rw-r--r-- | nixos/modules/system/boot/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/default.nix b/nixos/modules/system/boot/default.nix new file mode 100644 index 0000000..eedf939 --- /dev/null +++ b/nixos/modules/system/boot/default.nix @@ -0,0 +1,31 @@ +{ config, pkgs, lib, modulesPath, ... }: + +{ + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + # EDID firmware loading is kept here because it's a kernel-level boot concern. + # Commented kernel params from the original config are preserved. + # boot.kernelParams = [ + # "drm.edid_firmware=DP-1:edid/mi_edid.bin" + # "video=DP-1:2560x1440@180" + # ]; + hardware.firmware = [ + (pkgs.runCommand "custom-edid" {} '' + mkdir -p $out/lib/firmware/edid + cp ${../../../mi_edid.bin} $out/lib/firmware/edid/mi_edid.bin + '') + ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}
\ No newline at end of file |
