From 3ee95fd937b820c36a7d70d1a98cce00555247fc Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Tue, 15 Feb 2022 15:15:24 -0500 Subject: [PATCH] feat(Infini-SERVER): initialize data storage --- hosts/Infini-SERVER/hardware-configuration.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/hosts/Infini-SERVER/hardware-configuration.nix b/hosts/Infini-SERVER/hardware-configuration.nix index 15cf4b5..163102a 100644 --- a/hosts/Infini-SERVER/hardware-configuration.nix +++ b/hosts/Infini-SERVER/hardware-configuration.nix @@ -22,6 +22,9 @@ in let main = uuid "5f24b2a6-643d-4abd-a3b2-61ee124700b5"; esp = uuid "A2B8-4C6E"; + data = uuid ""; + + btrfsOptions = [ "autodefrag" "noatime" ]; in { "/" = { @@ -33,21 +36,21 @@ in "/persist" = { device = main; fsType = "btrfs"; - options = [ "subvol=root" "autodefrag" "noatime" "ssd" ]; + options = [ "subvol=root" "ssd" ] + btrfsOptions; neededForBoot = true; }; "/nix" = { device = main; fsType = "btrfs"; - options = [ "subvol=nix" "autodefrag" "noatime" "ssd" ]; + options = [ "subvol=nix" "ssd" ] + btrfsOptions; neededForBoot = true; }; "/boot" = { device = main; fsType = "btrfs"; - options = [ "subvol=boot" "autodefrag" "noatime" "ssd" ]; + options = [ "subvol=boot" "ssd" ] + btrfsOptions; neededForBoot = true; }; @@ -56,6 +59,12 @@ in fsType = "vfat"; neededForBoot = true; }; + + "/srv" = { + device = data; + fsType = "btrfs"; + options = [ "subvol=srv" "ssd" ] + btrfsOptions; + }; }; swapDevices = [