From eb227623b5656e7ff3e23cb373d72310989a8213 Mon Sep 17 00:00:00 2001
From: Thiago Sposito
Date: Thu, 15 Jan 2026 14:58:23 -0300
Subject: [PATCH] fix: add hostPlatform to nixcloud
---
hosts/Nixcloud/hardware-configuration.nix | 27 ++++++++++++++---------
1 file changed, 17 insertions(+), 10 deletions(-)
diff --git a/hosts/Nixcloud/hardware-configuration.nix b/hosts/Nixcloud/hardware-configuration.nix
index 430838a..147a8f5 100644
--- a/hosts/Nixcloud/hardware-configuration.nix
+++ b/hosts/Nixcloud/hardware-configuration.nix
@@ -1,17 +1,24 @@
-{ modulesPath, ... }:
+{ modulesPath, lib, ... }:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
- boot.loader.grub.device = "nodev";
-
- boot.initrd.availableKernelModules = [
- "ata_piix"
- "uhci_hcd"
- "xen_blkfront"
- "vmw_pvscsi" ];
boot.initrd.kernelModules = [ "nvme" ];
- fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; };
+ boot.loader.grub.device = "nodev";
+
+ fileSystems."/" = {
+ device = "/dev/sda1";
+ fsType = "ext4";
+ };
fileSystems."/boot" = {
device = "/dev/sda15";
fsType = "vfat";
};
-}
\ No newline at end of file
+
+ boot.initrd.availableKernelModules = [
+ "ata_piix"
+ "uhci_hcd"
+ "vmw_pvscsi"
+ "xen_blkfront"
+ ];
+
+ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+}