From a1c5c3b291ca99f9eec1bae2c30e0237345ac327 Mon Sep 17 00:00:00 2001 From: caem Date: Mon, 19 Jun 2023 22:32:04 +0200 Subject: [PATCH] Update qemu partitions to use btrfs subvolumes in preperation to erase my darlings --- systems/hardware/qemu-vm.nix | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/systems/hardware/qemu-vm.nix b/systems/hardware/qemu-vm.nix index 66180bc..16ef2fe 100644 --- a/systems/hardware/qemu-vm.nix +++ b/systems/hardware/qemu-vm.nix @@ -14,12 +14,38 @@ boot.extraModulePackages = [ ]; fileSystems."/" = - { device = "/dev/disk/by-uuid/126df580-7925-4bb4-b280-9e7e1c238d3e"; + { device = "/dev/disk/by-uuid/cba5b18e-14e6-479d-baf5-0827fced96e7"; fsType = "btrfs"; + options = [ "subvol=root" ]; + }; + + fileSystems."/home" = + { device = "/dev/disk/by-uuid/cba5b18e-14e6-479d-baf5-0827fced96e7"; + fsType = "btrfs"; + options = [ "subvol=home" ]; + }; + + fileSystems."/nix" = + { device = "/dev/disk/by-uuid/cba5b18e-14e6-479d-baf5-0827fced96e7"; + fsType = "btrfs"; + options = [ "subvol=nix" ]; + }; + + fileSystems."/persist" = + { device = "/dev/disk/by-uuid/cba5b18e-14e6-479d-baf5-0827fced96e7"; + fsType = "btrfs"; + options = [ "subvol=persist" ]; + }; + + fileSystems."/var/log" = + { device = "/dev/disk/by-uuid/cba5b18e-14e6-479d-baf5-0827fced96e7"; + fsType = "btrfs"; + options = [ "subvol=log" ]; + neededForBoot = true; }; fileSystems."/boot" = - { device = "/dev/disk/by-uuid/8F2D-7123"; + { device = "/dev/disk/by-uuid/5725-D092"; fsType = "vfat"; };