mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
test: impermanence
This commit is contained in:
parent
b1067ff181
commit
96c02ac2cb
1 changed files with 17 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue