-
Notifications
You must be signed in to change notification settings - Fork 0
/
filesystem.nix
42 lines (29 loc) · 893 Bytes
/
filesystem.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ ... }: {
# Point to the EFI system partition.
fileSystems."/boot" = {
device = "/dev/disk/by-label/EFI";
fsType = "vfat";
};
# Point to the root BTRFS subvolume (NixOS partition).
fileSystems."/" = {
fsType = "btrfs";
device = "/dev/disk/by-label/NixOS";
options = [ "subvol=root" "compress=zstd" ];
};
# Point to the home BTRFS subvolume (NixOS partition).
fileSystems."/home" = {
fsType = "btrfs";
device = "/dev/disk/by-label/NixOS";
options = [ "subvol=home" "compress=zstd" ];
};
# Point to the Nix Store BTRFS subvolume (NixOS partition).
fileSystems."/nix" = {
fsType = "btrfs";
device = "/dev/disk/by-label/NixOS";
options = [ "subvol=nix" "compress=zstd" ];
};
# Include here any swap partitions.
swapDevices = [
{ device = "/dev/disk/by-label/swap"; }
];
}