diff options
author | Lily Foster <lily@lily.flowers> | 2022-12-17 12:09:10 -0500 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-12-23 20:27:47 +0100 |
commit | 77c8f6460fc9ccb31bfd9fca791f9186b92196ae (patch) | |
tree | 06b73aa64fed89ab39288b17014f7f454d60686e /example | |
parent | 1ecb428c86b7b0e70493295a73f62b240ab0bb29 (diff) |
types: add btrfs_subvol type
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" = {}; + }; }; } ]; |