feat(Infini-SERVER): initialize data storage
This commit is contained in:
parent
7090108655
commit
3ee95fd937
1 changed files with 12 additions and 3 deletions
|
@ -22,6 +22,9 @@ in
|
||||||
let
|
let
|
||||||
main = uuid "5f24b2a6-643d-4abd-a3b2-61ee124700b5";
|
main = uuid "5f24b2a6-643d-4abd-a3b2-61ee124700b5";
|
||||||
esp = uuid "A2B8-4C6E";
|
esp = uuid "A2B8-4C6E";
|
||||||
|
data = uuid "";
|
||||||
|
|
||||||
|
btrfsOptions = [ "autodefrag" "noatime" ];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
"/" = {
|
"/" = {
|
||||||
|
@ -33,21 +36,21 @@ in
|
||||||
"/persist" = {
|
"/persist" = {
|
||||||
device = main;
|
device = main;
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=root" "autodefrag" "noatime" "ssd" ];
|
options = [ "subvol=root" "ssd" ] + btrfsOptions;
|
||||||
neededForBoot = true;
|
neededForBoot = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
"/nix" = {
|
"/nix" = {
|
||||||
device = main;
|
device = main;
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=nix" "autodefrag" "noatime" "ssd" ];
|
options = [ "subvol=nix" "ssd" ] + btrfsOptions;
|
||||||
neededForBoot = true;
|
neededForBoot = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
"/boot" = {
|
"/boot" = {
|
||||||
device = main;
|
device = main;
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=boot" "autodefrag" "noatime" "ssd" ];
|
options = [ "subvol=boot" "ssd" ] + btrfsOptions;
|
||||||
neededForBoot = true;
|
neededForBoot = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -56,6 +59,12 @@ in
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
neededForBoot = true;
|
neededForBoot = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"/srv" = {
|
||||||
|
device = data;
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=srv" "ssd" ] + btrfsOptions;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [
|
swapDevices = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue