add aarch64 vm

This commit is contained in:
sckova 2025-12-01 12:23:07 -05:00 committed by Sean Kovacs
commit 7e657cddc1
Signed by: sckova
GPG key ID: 00F325187C68651A
4 changed files with 240 additions and 0 deletions

32
hardware/vm-aarch64.nix Normal file
View file

@ -0,0 +1,32 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "virtio_pci" "usbhid" "usb_storage" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/1f30a8f4-8d6d-47eb-a2c1-82c311b69695";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/2438-C64A";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/5a1e7296-e7d2-4e66-9e1f-505b80f5ff3b"; }
];
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
}