diff options
author | Lassulus <github@lassul.us> | 2022-12-23 20:32:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-23 20:32:56 +0100 |
commit | 11d5c74c30cec9783d8281a3af51d269ac7f3eab (patch) | |
tree | 06b73aa64fed89ab39288b17014f7f454d60686e /example | |
parent | 1ecb428c86b7b0e70493295a73f62b240ab0bb29 (diff) | |
parent | 77c8f6460fc9ccb31bfd9fca791f9186b92196ae (diff) |
Merge pull request #82 from lilyinstarlight/feature/btrfs-subvolume-types
Diffstat (limited to 'example')
-rw-r--r-- | example/btrfs-subvolumes.nix | 20 |
1 files changed, 15 insertions, 5 deletions
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" = {}; + }; }; } ]; |