Samuel Shuert | 02ffd1e | 2024-02-13 21:37:15 -0500 | [diff] [blame] | 1 | { lib, ... }: |
| 2 | { |
| 3 | fileSystems = |
| 4 | (lib.mapAttrs |
| 5 | (_: share_name: { |
| 6 | device = "/dev/disk/by-label/BTRFS0"; |
| 7 | fsType = "btrfs"; |
| 8 | options = [ |
| 9 | "subvol=shared/${share_name}" |
| 10 | "compress=zstd:1" |
| 11 | ]; |
| 12 | }) |
| 13 | { |
| 14 | "/home/minion/Code" = "@Code"; |
| 15 | "/var/lib/containers" = "@containers"; |
| 16 | "/etc/NetworkManager" = "@NetworkManager"; |
| 17 | "/home/minion/.local/share/containers/storage" = "@personal-containers"; |
| 18 | "/home/minion/.gtimelog" = "@gtimelog"; |
| 19 | "/home/minion/Documents" = "@documents"; |
| 20 | } |
| 21 | ) |
| 22 | // { |
| 23 | "/mnt" = { |
| 24 | device = "/dev/mapper/key"; |
| 25 | fsType = "ext4"; |
| 26 | }; |
| 27 | |
| 28 | "/" = { |
| 29 | device = "/dev/disk/by-label/BTRFS0"; |
| 30 | fsType = "btrfs"; |
| 31 | options = [ |
| 32 | "subvol=@nixos" |
| 33 | "compress=zstd:1" |
| 34 | ]; |
| 35 | }; |
| 36 | |
| 37 | "/var" = { |
| 38 | device = "/dev/disk/by-label/BTRFS0"; |
| 39 | fsType = "btrfs"; |
| 40 | options = [ |
| 41 | "subvol=@nixos-var" |
| 42 | "compress=zstd:1" |
| 43 | ]; |
| 44 | }; |
| 45 | |
| 46 | "/home" = { |
| 47 | device = "/dev/disk/by-label/BTRFS0"; |
| 48 | fsType = "btrfs"; |
| 49 | options = [ |
| 50 | "subvol=@nixos-home" |
| 51 | "compress=zstd:1" |
| 52 | ]; |
| 53 | }; |
| 54 | |
| 55 | "/nix" = { |
| 56 | device = "/dev/disk/by-label/BTRFS0"; |
| 57 | fsType = "btrfs"; |
| 58 | options = [ |
| 59 | "subvol=@nixos-nix" |
| 60 | "compress=zstd:1" |
| 61 | ]; |
| 62 | }; |
| 63 | |
| 64 | "/boot" = { |
| 65 | device = "/dev/disk/by-label/ESP"; |
| 66 | fsType = "vfat"; |
| 67 | }; |
| 68 | }; |
| 69 | |
| 70 | swapDevices = [ ]; |
| 71 | } |