This commit is contained in:
steveej 2023-03-08 19:13:59 +01:00
parent 855c463a93
commit 693ae383ef
16 changed files with 63 additions and 474 deletions

View file

@ -1,4 +1,5 @@
{...}: let
{ ... }:
let
stage1Modules = [
"virtio_balloon"
"virtio_scsi"
@ -15,29 +16,36 @@
"pata_acpi"
"ata_generic"
];
in {
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/354fb107-2f4a-42ad-80dd-9dddb61bfd02";
fsType = "ext4";
in
{
hardware.opinionatedDisk = {
enable = true;
encrypted = false;
diskId = "virtio-virtio-paeNi8Fof9Oe";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/993cce35-cc1f-40cc-b07a-5ea58b99fb5b";
fsType = "btrfs";
options = ["subvol=root"];
neededForBoot = true;
};
# fileSystems."/boot" = {
# device = "/dev/disk/by-uuid/354fb107-2f4a-42ad-80dd-9dddb61bfd02";
# fsType = "ext4";
# };
fileSystems."/home" = {
device = "/dev/disk/by-uuid/993cce35-cc1f-40cc-b07a-5ea58b99fb5b";
fsType = "btrfs";
options = ["subvol=home"];
neededForBoot = true;
};
# fileSystems."/" = {
# device = "/dev/disk/by-uuid/993cce35-cc1f-40cc-b07a-5ea58b99fb5b";
# fsType = "btrfs";
# options = [ "subvol=root" ];
# neededForBoot = true;
# };
swapDevices = [{device = "/dev/disk/by-uuid/d16b5f4a-f38c-41c6-8aae-1625be815f9d";}];
# fileSystems."/home" = {
# device = "/dev/disk/by-uuid/993cce35-cc1f-40cc-b07a-5ea58b99fb5b";
# fsType = "btrfs";
# options = [ "subvol=home" ];
# neededForBoot = true;
# };
boot.loader.grub = {device = "/dev/vda";};
# swapDevices = [{ device = "/dev/disk/by-uuid/d16b5f4a-f38c-41c6-8aae-1625be815f9d"; }];
# boot.loader.grub = { device = "/dev/vda"; };
boot.initrd.availableKernelModules = stage1Modules;
boot.initrd.kernelModules = stage1Modules;