blob: a188df187023661686f7bb1d62640c384e8b1619 (
plain) (
blame)
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
|
{config, ...}: let
main_disk = "/dev/disk/by-uuid/<uuid>";
in {
fileSystems = {
"/" = {
device = "none";
fsType = "tmpfs";
options = ["defaults" "size=2G" "mode=755"];
};
"/nix" = {
device = main_disk;
fsType = "btrfs";
options = ["subvol=@nix" "compress-force=zstd:9"];
};
"/boot" = {
device = "/dev/disk/by-uuid/<uuid>";
fsType = "vfat";
};
"/srv/home" = {
device = main_disk;
fsType = "btrfs";
options = ["subvol=@home" "compress-force=zstd:9"];
};
"/srv/nixos-config" = {
device = main_disk;
fsType = "btrfs";
options = ["subvol=@nixos-config" "compress-force=zstd:9"];
};
"/etc/nixos" = {
device = "/srv/nix-config";
options = ["bind"];
};
"/home" = {
device = "/srv/home";
options = ["bind"];
};
};
swapDevices = [];
}
|