summary refs log tree commit diff stats
path: root/hardware-configuration.nix
blob: 849560714133faee86b818de076068dbf17192e6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{modulesPath, ...}: {
  imports = [(modulesPath + "/profiles/qemu-guest.nix")];
  boot.loader.grub.device = "/dev/vda";
  boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi"];
  boot.initrd.kernelModules = ["nvme" "btrfs"];
  fileSystems = {
    "/" = {
      device = "/dev/vda3";
      fsType = "btrfs";
      options = ["subvol=nixos-root"];
    };
    "/nix" = {
      device = "/dev/vda3";
      fsType = "btrfs";
      options = ["subvol=nix"];
    };
  };
}