infrastructure/hosts/master.mirror.lewd.wtf/hardware-configuration.nix

19 lines
461 B
Nix
Raw Normal View History

2023-04-12 12:47:22 +00:00
{ modulesPath, ... }:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
boot.kernelModules = [ "kvm-intel" ];
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
fileSystems."/mnt/data" = {
device = "/dev/disk/by-label/data";
fsType = "ext4";
};
2023-04-22 07:20:17 +00:00
services.qemuGuest.enable = true;
2023-04-12 12:47:22 +00:00
}