feat(Infini-SERVER): initial setup for data storage
This commit is contained in:
parent
500706c21c
commit
1c20f6ad0f
1 changed files with 28 additions and 9 deletions
|
@ -22,17 +22,31 @@ in
|
|||
let
|
||||
main = uuid "5f24b2a6-643d-4abd-a3b2-61ee124700b5";
|
||||
esp = uuid "A2B8-4C6E";
|
||||
data = uuid "";
|
||||
data = uuid "34668afb-7514-46cd-8c2c-0dcf19cd4742";
|
||||
|
||||
btrfsOptions = [ "autodefrag" "noatime" ];
|
||||
btrfsOptions = [ "defaults" "autodefrag" "noatime" ];
|
||||
in
|
||||
{
|
||||
"/" = {
|
||||
device = "none";
|
||||
device = "tmpfs";
|
||||
fsType = "tmpfs";
|
||||
options = [ "defaults" "size=4G" "mode=755" ];
|
||||
};
|
||||
|
||||
"/media/main" = {
|
||||
device = main;
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=/" "ssd" ] ++ btrfsOptions;
|
||||
neededForBoot = true;
|
||||
};
|
||||
|
||||
"/media/data" = {
|
||||
device = data;
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=/" "ssd" ] ++ btrfsOptions;
|
||||
neededForBoot = true;
|
||||
};
|
||||
|
||||
"/persist" = {
|
||||
device = main;
|
||||
fsType = "btrfs";
|
||||
|
@ -40,6 +54,17 @@ in
|
|||
neededForBoot = true;
|
||||
};
|
||||
|
||||
"/persist-test" = {
|
||||
device = "overlay";
|
||||
fsType = "overlay";
|
||||
options = [
|
||||
"upperdir=/media/main/root"
|
||||
"lowerdir=/media/data/root"
|
||||
"workdir=/media/main/work"
|
||||
];
|
||||
neededForBoot = true;
|
||||
};
|
||||
|
||||
"/nix" = {
|
||||
device = main;
|
||||
fsType = "btrfs";
|
||||
|
@ -59,12 +84,6 @@ in
|
|||
fsType = "vfat";
|
||||
neededForBoot = true;
|
||||
};
|
||||
|
||||
# "/srv" = {
|
||||
# device = data;
|
||||
# fsType = "btrfs";
|
||||
# options = [ "subvol=srv" "ssd" ] + btrfsOptions;
|
||||
# };
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue