From 139b9129916642e05b0627a9e197241d9cb596c1 Mon Sep 17 00:00:00 2001 From: "Mohamed C." Date: Tue, 3 Mar 2026 11:37:37 +0100 Subject: [PATCH] system variable --- modules/hosts/computer-mo/hardware.nix | 10 +++++----- .../computer-mo/{configuration.nix => imports.nix} | 0 2 files changed, 5 insertions(+), 5 deletions(-) rename modules/hosts/computer-mo/{configuration.nix => imports.nix} (100%) diff --git a/modules/hosts/computer-mo/hardware.nix b/modules/hosts/computer-mo/hardware.nix index ed54453..f58c46b 100644 --- a/modules/hosts/computer-mo/hardware.nix +++ b/modules/hosts/computer-mo/hardware.nix @@ -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" ]; }; diff --git a/modules/hosts/computer-mo/configuration.nix b/modules/hosts/computer-mo/imports.nix similarity index 100% rename from modules/hosts/computer-mo/configuration.nix rename to modules/hosts/computer-mo/imports.nix