diff options
| author | Joe Mou <dev@mou.fo> | 2024-11-16 15:59:14 -0500 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2024-11-16 15:59:14 -0500 |
| commit | f1198caab6dd3433230bc558c5509fa0ba953e88 (patch) | |
| tree | 75864cdf4ffeec773fe449b301e0b2ee75d86080 | |
| parent | 9f3989886fc46b1d799d7622917b4c3a8328a649 (diff) | |
Separate /srv/restic subvolume and enable compression
Simpler to enable compression on an entire filesystem; we use it for
magnetic storage.
| -rw-r--r-- | hostnix/elmo/hardware-configuration.nix | 10 |
1 files changed, 8 insertions, 2 deletions
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" = |
