fix: add hostPlatform to nixcloud

This commit is contained in:
Thiago Sposito 2026-01-15 14:58:23 -03:00
parent b0f14a29bb
commit eb227623b5
Signed by: thiago
GPG key ID: 3065EA73A976D430

View file

@ -1,17 +1,24 @@
{ modulesPath, ... }: { modulesPath, lib, ... }:
{ {
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.initrd.kernelModules = [ "nvme" ];
boot.loader.grub.device = "nodev"; boot.loader.grub.device = "nodev";
boot.initrd.availableKernelModules = [ fileSystems."/" = {
"ata_piix" device = "/dev/sda1";
"uhci_hcd" fsType = "ext4";
"xen_blkfront" };
"vmw_pvscsi" ];
boot.initrd.kernelModules = [ "nvme" ];
fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; };
fileSystems."/boot" = { fileSystems."/boot" = {
device = "/dev/sda15"; device = "/dev/sda15";
fsType = "vfat"; fsType = "vfat";
}; };
boot.initrd.availableKernelModules = [
"ata_piix"
"uhci_hcd"
"vmw_pvscsi"
"xen_blkfront"
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
} }