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
96c02ac2cb
commit
5336cb8ebb
1 changed files with 39 additions and 35 deletions
|
|
@ -8,46 +8,50 @@ let
|
|||
inherit (flake.config.people) user0;
|
||||
in
|
||||
{
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-uuid/8596aaba-338f-1f9d-ba9d-a63bcbc38523";
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"subvol=root"
|
||||
];
|
||||
};
|
||||
fileSystems =
|
||||
let
|
||||
rootDevice = "/dev/disk/by-uuid/8596aaba-338f-4f9d-ba9d-a63bcbc38523";
|
||||
in
|
||||
{
|
||||
"/" = {
|
||||
device = rootDevice;
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"subvol=root"
|
||||
];
|
||||
};
|
||||
|
||||
"/nix" = {
|
||||
device = "/dev/disk/by-uuid/8596aaba-338f-1f9d-ba9d-a63bcbc38523";
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"subvol=nix"
|
||||
];
|
||||
};
|
||||
"/nix" = {
|
||||
device = rootDevice;
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"subvol=nix"
|
||||
];
|
||||
};
|
||||
|
||||
"/persistent" = {
|
||||
device = "/dev/disk/by-uuid/8596aaba-338f-1f9d-ba9d-a63bcbc38523";
|
||||
fsType = "btrfs";
|
||||
neededForBoot = true;
|
||||
options = [
|
||||
"subvol=persistent"
|
||||
];
|
||||
};
|
||||
"/persistent" = {
|
||||
device = rootDevice;
|
||||
fsType = "btrfs";
|
||||
neededForBoot = true;
|
||||
options = [
|
||||
"subvol=persistent"
|
||||
];
|
||||
};
|
||||
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-uuid/7328-07C6";
|
||||
fsType = "vfat";
|
||||
options = [
|
||||
"fmask=0077"
|
||||
"dmask=0077"
|
||||
];
|
||||
};
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-uuid/7328-07C6";
|
||||
fsType = "vfat";
|
||||
options = [
|
||||
"fmask=0077"
|
||||
"dmask=0077"
|
||||
];
|
||||
};
|
||||
|
||||
"/mnt/storage" = {
|
||||
device = "/dev/disk/by-label/storage";
|
||||
fsType = "ext4";
|
||||
"/mnt/storage" = {
|
||||
device = "/dev/disk/by-label/storage";
|
||||
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