system variable

This commit is contained in:
2026-03-03 11:37:37 +01:00
parent 9b06dd01c5
commit 139b912991
2 changed files with 5 additions and 5 deletions

View File

@@ -1,8 +1,8 @@
{
flake.nixosModules.computer-mo = {
boot.initrd.availableKernelModules = [ "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.kernelParams = [ "quiet" "splash" "boot.shell_on_fail" "loglevel=3" "rd.systemd.show_status=false" "rd.udev.log_level=3" "udev.log_priority=3" ];
nixpkgs.hostPlatform = "x86_64-linux";
{ ... }: {
flake.nixosModules.computer-mo = { system, ... }: {
boot.initrd.availableKernelModules = [ "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" "nvme" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.kernelParams = [ "quiet" "splash" "boot.shell_on_fail" "loglevel=3" "rd.systemd.show_status=false" "rd.udev.log_level=3" "udev.log_priority=3" ];
nixpkgs.hostPlatform = system;
hardware.cpu.amd.updateMicrocode = true;
boot.kernelModules = [ "kvm-amd" ];
};