test: impermanence

This commit is contained in:
Nick 2025-11-05 12:14:28 -06:00
parent b1067ff181
commit 96c02ac2cb

View file

@ -10,28 +10,37 @@ in
{
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/00d712c2-5883-4409-afd8-514886f4e824";
device = "/dev/disk/by-uuid/8596aaba-338f-1f9d-ba9d-a63bcbc38523";
fsType = "btrfs";
options = [ "subvol=root" ];
options = [
"subvol=root"
];
};
"/nix" = {
device = "/dev/disk/by-uuid/00d712c2-5883-4409-afd8-514886f4e824";
device = "/dev/disk/by-uuid/8596aaba-338f-1f9d-ba9d-a63bcbc38523";
fsType = "btrfs";
options = [ "subvol=nix" ];
options = [
"subvol=nix"
];
};
"/persistent" = {
device = "/dev/disk/by-uuid/00d712c2-5883-4409-afd8-514886f4e824";
device = "/dev/disk/by-uuid/8596aaba-338f-1f9d-ba9d-a63bcbc38523";
fsType = "btrfs";
neededForBoot = true;
options = [ "subvol=persistent" ];
options = [
"subvol=persistent"
];
};
"/boot" = {
device = "/dev/disk/by-uuid/D018-1408";
device = "/dev/disk/by-uuid/7328-07C6";
fsType = "vfat";
options = [ "umask=0077" ];
options = [
"fmask=0077"
"dmask=0077"
];
};
"/mnt/storage" = {
@ -39,7 +48,6 @@ in
fsType = "ext4";
};
};
boot.initrd.postResumeCommands = lib.mkAfter ''
mkdir /btrfs_tmp
mount -o subvolid=5 /dev/sdb2 /btrfs_tmp