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