From f1198caab6dd3433230bc558c5509fa0ba953e88 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Sat, 16 Nov 2024 15:59:14 -0500 Subject: Separate /srv/restic subvolume and enable compression Simpler to enable compression on an entire filesystem; we use it for magnetic storage. --- hostnix/elmo/hardware-configuration.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'hostnix/elmo') diff --git a/hostnix/elmo/hardware-configuration.nix b/hostnix/elmo/hardware-configuration.nix index 88d1073..fa7627d 100644 --- a/hostnix/elmo/hardware-configuration.nix +++ b/hostnix/elmo/hardware-configuration.nix @@ -34,13 +34,19 @@ fileSystems."/srv" = { device = "/dev/disk/by-uuid/288b0110-1816-4cc7-8cd9-9c019ebd0036"; fsType = "btrfs"; - options = [ "subvol=@srv" ]; + options = [ "subvol=@srv" "compress=zstd" ]; + }; + + fileSystems."/srv/restic" = + { device = "/dev/disk/by-uuid/288b0110-1816-4cc7-8cd9-9c019ebd0036"; + fsType = "btrfs"; + options = [ "subvol=@srv-restic" "compress=zstd" ]; }; fileSystems."/var" = { device = "/dev/disk/by-uuid/288b0110-1816-4cc7-8cd9-9c019ebd0036"; fsType = "btrfs"; - options = [ "subvol=@var" ]; + options = [ "subvol=@var" "compress=zstd" ]; }; fileSystems."/boot" = -- cgit v1.3.1