apteryx pushed a commit to branch master in repository maintenance. commit 0ba36942a26ab3a9df4a757fe2de8b580848685a Author: Maxim Cournoyer <maxim.courno...@gmail.com> AuthorDate: Fri Sep 23 08:19:54 2022 -0400
hydra: overdrive: Enable Btrfs compression. * hydra/modules/sysadmin/overdrive.scm (%common-btrfs-options): New variable. (overdrive-system) [file-systems] </dev/sda3>: Use it for mount options. --- hydra/modules/sysadmin/overdrive.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hydra/modules/sysadmin/overdrive.scm b/hydra/modules/sysadmin/overdrive.scm index ee879d1..43ad9dc 100644 --- a/hydra/modules/sysadmin/overdrive.scm +++ b/hydra/modules/sysadmin/overdrive.scm @@ -79,6 +79,9 @@ "balance" "start" "-dusage=5" "/")) "btrfs-balance")) +(define %common-btrfs-options '(("compress-force" . "zstd") + ("space_cache" . "v2"))) + (define* (overdrive-system name #:key wireguard-ip) (operating-system (host-name name) @@ -94,7 +97,9 @@ (file-systems (cons* (file-system (device "/dev/sda3") (mount-point "/") - (type "btrfs")) + (type "btrfs") + (options (alist->file-system-options + %common-btrfs-options))) (file-system (device "/dev/sda1") (mount-point "/boot/efi")