From 8bff5db0f5c587d1abda6214da1a7c1c6f669042 Mon Sep 17 00:00:00 2001 From: stitchy Date: Sat, 21 Dec 2024 19:17:45 -0800 Subject: [PATCH] feat(tanzanite): redundant storage configuration --- hosts/tanzanite/default.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/hosts/tanzanite/default.nix b/hosts/tanzanite/default.nix index 7fca921..3d928e8 100644 --- a/hosts/tanzanite/default.nix +++ b/hosts/tanzanite/default.nix @@ -18,9 +18,25 @@ in { boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; + # Redundant Storage + fileSystems."/opt/data" = { + device = "/dev/disk/by-uuid/0acaee69-07df-45f3-a2f4-65e2f3fda529"; + fsType = "btrfs"; + options = [ "subvol=@data" "compress=zstd" ]; }; + fileSystems."/opt/docker-containers" = { + device = "/dev/disk/by-uuid/0acaee69-07df-45f3-a2f4-65e2f3fda529"; + fsType = "btrfs"; + options = [ "subvol=@docker-containers" "compress=zstd" ]; }; + + fileSystems."/opt/www" = { + device = "/dev/disk/by-uuid/0acaee69-07df-45f3-a2f4-65e2f3fda529"; + fsType = "btrfs"; + options = [ "subvol=@www" "compress=zstd" ]; + }; + # Non-Redundant Storage fileSystems."/" = { device = "/dev/disk/by-uuid/ac31f656-1882-415e-bbb7-b4d24c0af01c";