nixos-config/machines/vm2/hardware-configuration.nix

33 lines
791 B
Nix
Raw Normal View History

2021-11-12 07:23:46 +01:00
# 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 = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
2021-11-18 15:02:12 +01:00
boot.initrd.kernelModules = [ "kvm-amd" ];
boot.kernelModules = [ "kvm-amd" ];
2021-11-12 07:23:46 +01:00
boot.extraModulePackages = [ ];
fileSystems."/" =
{
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
fileSystems."/boot" =
{
device = "/dev/disk/by-label/boot";
fsType = "vfat";
};
swapDevices =
[{ device = "/dev/disk/by-label/swap"; }];
}