# Hardware profile for the initial Hyper-V deployment. Filesystems use labels so # the installation remains independent of the virtual disk's UUIDs. { lib, ... }: { boot.initrd.availableKernelModules = [ "sd_mod" "sr_mod" ]; fileSystems."/" = { device = "/dev/disk/by-label/nixos"; fsType = "ext4"; }; fileSystems."/boot" = { device = "/dev/disk/by-label/EFI"; fsType = "vfat"; options = [ "fmask=0022" "dmask=0022" ]; }; swapDevices = [ { device = "/dev/disk/by-label/swap"; } ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; virtualisation.hypervGuest.enable = true; }