[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/06: hydra: overdrive: Enable Btrfs compression.
From: |
Maxim Cournoyer |
Subject: |
02/06: hydra: overdrive: Enable Btrfs compression. |
Date: |
Sun, 25 Sep 2022 22:29:10 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository maintenance.
commit 0ba36942a26ab3a9df4a757fe2de8b580848685a
Author: Maxim Cournoyer <maxim.cournoyer@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")
- branch master updated (af6d488 -> 9971141), Maxim Cournoyer, 2022/09/25
- 04/06: hydra: overdrive: Allow un-authenticated sudo to wheel group., Maxim Cournoyer, 2022/09/25
- 05/06: hydra: Turn overdrive1 config into a deployable machine config., Maxim Cournoyer, 2022/09/25
- 02/06: hydra: overdrive: Enable Btrfs compression.,
Maxim Cournoyer <=
- 06/06: hydra: overdrive: Use ZRAM., Maxim Cournoyer, 2022/09/25
- 03/06: hydra: build-machines: Enable non-authenticated sudo by group., Maxim Cournoyer, 2022/09/25
- 01/06: hydra: Adjust Btrfs balance jobs., Maxim Cournoyer, 2022/09/25