Skip to content

Commit 145de68

Browse files
style: run alejandra formatter for btrfs subvolumes PR
1 parent 19c4cc7 commit 145de68

File tree

2 files changed

+131
-131
lines changed

2 files changed

+131
-131
lines changed

example/btrfs-subvolumes.nix

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,39 +17,35 @@
1717
type = "filesystem";
1818
format = "vfat";
1919
mountpoint = "/boot";
20-
mountOptions = [ "umask=0077" ];
20+
mountOptions = ["umask=0077"];
2121
};
2222
};
2323
root = {
2424
size = "100%";
2525
content = {
2626
type = "btrfs";
27-
extraArgs = [ "-f" ]; # Override existing partition
27+
extraArgs = ["-f"]; # Override existing partition
28+
mountOptions = ["compress=zstd"];
2829
# Subvolumes must set a mountpoint in order to be mounted,
2930
# unless their parent is mounted
3031
subvolumes = {
3132
# Subvolume name is different from mountpoint
3233
"/rootfs" = {
33-
mountOptions = [ "compress=zstd" ];
3434
mountpoint = "/";
3535
};
3636
# Subvolume name is the same as the mountpoint
3737
"/home" = {
38-
mountOptions = [ "compress=zstd" ];
3938
mountpoint = "/home";
4039
};
4140
# Sub(sub)volume doesn't need a mountpoint as its parent is mounted
42-
"/home/user" = { };
41+
"/home/user" = {};
4342
# Parent is not mounted so the mountpoint must be set
4443
"/nix" = {
45-
mountOptions = [
46-
"compress=zstd"
47-
"noatime"
48-
];
44+
mountOptions = ["noatime"];
4945
mountpoint = "/nix";
5046
};
5147
# This subvolume will be created but not mounted
52-
"/test" = { };
48+
"/test" = {};
5349
# Subvolume for the swapfile
5450
"/swap" = {
5551
mountpoint = "/.swapvol";

0 commit comments

Comments
 (0)