infra/nix/os/devices/167.233.1.14/hw.nix

46 lines
1,014 B
Nix
Raw Normal View History

2023-02-07 18:24:28 +01:00
{...}: let
2022-10-31 11:04:38 +01:00
stage1Modules = [
"virtio_balloon"
"virtio_scsi"
"virtio_net"
"virtio_pci"
"virtio_ring"
"virtio"
"scsi_mod"
"virtio_blk"
"virtio_ring"
"bochs_drm"
"ata_piix"
"pata_acpi"
"ata_generic"
];
2022-10-31 11:04:38 +01:00
in {
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/354fb107-2f4a-42ad-80dd-9dddb61bfd02";
fsType = "ext4";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/993cce35-cc1f-40cc-b07a-5ea58b99fb5b";
fsType = "btrfs";
2023-02-07 18:24:28 +01:00
options = ["subvol=root"];
neededForBoot = true;
};
fileSystems."/home" = {
device = "/dev/disk/by-uuid/993cce35-cc1f-40cc-b07a-5ea58b99fb5b";
fsType = "btrfs";
2023-02-07 18:24:28 +01:00
options = ["subvol=home"];
neededForBoot = true;
};
2023-02-07 18:24:28 +01:00
swapDevices = [{device = "/dev/disk/by-uuid/d16b5f4a-f38c-41c6-8aae-1625be815f9d";}];
2023-02-07 18:24:28 +01:00
boot.loader.grub = {device = "/dev/vda";};
boot.initrd.availableKernelModules = stage1Modules;
boot.initrd.kernelModules = stage1Modules;
2022-10-31 11:04:38 +01:00
boot.extraModprobeConfig = "";
}