From 14cb92120871ee793a3a149d91061c178608e022 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Tue, 12 Sep 2023 21:45:15 +0200 Subject: [PATCH] btrfs use zstd for compression --- hosts/luci/hardware-configuration.nix | 6 +++--- hosts/morty/hardware-configuration.nix | 8 ++++---- hosts/mrmeeseeks/hardware-configuration.nix | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/hosts/luci/hardware-configuration.nix b/hosts/luci/hardware-configuration.nix index 8377bfa..b41ef5e 100644 --- a/hosts/luci/hardware-configuration.nix +++ b/hosts/luci/hardware-configuration.nix @@ -18,19 +18,19 @@ fileSystems."/" = { device = "/dev/disk/by-uuid/97c3403a-fdad-4dc8-a103-a666d5fd8d6c"; fsType = "btrfs"; - options = [ "subvol=root" ]; + options = [ "subvol=root" "compress=zstd" ]; }; fileSystems."/home" = { device = "/dev/disk/by-uuid/97c3403a-fdad-4dc8-a103-a666d5fd8d6c"; fsType = "btrfs"; - options = [ "subvol=home" ]; + options = [ "subvol=home" "compress=zstd"]; }; fileSystems."/nix" = { device = "/dev/disk/by-uuid/97c3403a-fdad-4dc8-a103-a666d5fd8d6c"; fsType = "btrfs"; - options = [ "subvol=nix" ]; + options = [ "subvol=nix" "compress=zstd"]; }; fileSystems."/boot" = diff --git a/hosts/morty/hardware-configuration.nix b/hosts/morty/hardware-configuration.nix index 97dc4eb..69564b3 100644 --- a/hosts/morty/hardware-configuration.nix +++ b/hosts/morty/hardware-configuration.nix @@ -13,11 +13,11 @@ boot.kernelModules = [ "kvm-intel" "i915" ]; boot.extraModulePackages = [ ]; boot.kernelParams = ["fbcon=rotate:1" "video=eDP-1:panel_orientation=right_side_up"]; - + boot.loader.systemd-boot.consoleMode = "max"; fileSystems."/" = { device = "/dev/disk/by-uuid/d28d59b0-a44d-4b17-9338-2ca69a1efca7"; fsType = "btrfs"; - options = [ "subvol=root" ]; + options = [ "subvol=root" "compress=zstd"]; }; boot.initrd.luks.devices."nixos".device = "/dev/disk/by-uuid/ad4fa799-214c-4e5e-996a-8776e010fb2f"; @@ -25,13 +25,13 @@ fileSystems."/nix" = { device = "/dev/disk/by-uuid/d28d59b0-a44d-4b17-9338-2ca69a1efca7"; fsType = "btrfs"; - options = [ "subvol=nix" ]; + options = [ "subvol=nix" "compress=zstd" ]; }; fileSystems."/home" = { device = "/dev/disk/by-uuid/d28d59b0-a44d-4b17-9338-2ca69a1efca7"; fsType = "btrfs"; - options = [ "subvol=home" ]; + options = [ "subvol=home" "compress=zstd" ]; }; fileSystems."/boot" = diff --git a/hosts/mrmeeseeks/hardware-configuration.nix b/hosts/mrmeeseeks/hardware-configuration.nix index ac24d06..82810dc 100644 --- a/hosts/mrmeeseeks/hardware-configuration.nix +++ b/hosts/mrmeeseeks/hardware-configuration.nix @@ -32,13 +32,13 @@ fileSystems."/" = { device = "/dev/disk/by-uuid/9d1e5022-0265-4ce7-824e-282ee550d52d"; fsType = "btrfs"; - options = [ "subvol=@root" ]; + options = [ "subvol=@root" "compress=zstd"]; }; fileSystems."/home" = { device = "/dev/disk/by-uuid/9d1e5022-0265-4ce7-824e-282ee550d52d"; fsType = "btrfs"; - options = [ "subvol=@home" ]; + options = [ "subvol=@home" "compress=zstd"]; }; fileSystems."/boot" =