From 77c8f6460fc9ccb31bfd9fca791f9186b92196ae Mon Sep 17 00:00:00 2001 From: Lily Foster Date: Sat, 17 Dec 2022 12:09:10 -0500 Subject: types: add btrfs_subvol type --- example/btrfs-subvolumes.nix | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'example') diff --git a/example/btrfs-subvolumes.nix b/example/btrfs-subvolumes.nix index 02ce2a4..25994df 100644 --- a/example/btrfs-subvolumes.nix +++ b/example/btrfs-subvolumes.nix @@ -27,11 +27,21 @@ end = "100%"; content = { type = "btrfs"; - mountpoint = "/"; - subvolumes = [ - "/home" - "/test" - ]; + extraArgs = "-f"; # Override existing partition + subvolumes = { + # Subvolume name is different from mountpoint + "/rootfs" = { + mountpoint = "/"; + }; + # Mountpoints inferred from subvolume name + "/home" = { + mountOptions = ["compress=zstd"]; + }; + "/nix" = { + mountOptions = ["compress=zstd" "noatime"]; + }; + "/test" = {}; + }; }; } ]; -- cgit v1.2.3