-
-
Notifications
You must be signed in to change notification settings - Fork 294
Expand file tree
/
Copy pathbcachefs-tpm2-performance.nix
More file actions
73 lines (69 loc) · 1.67 KB
/
bcachefs-tpm2-performance.nix
File metadata and controls
73 lines (69 loc) · 1.67 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
disko.devices = {
disk = {
vdb = {
device = "/dev/vdb";
type = "disk";
content = {
type = "gpt";
partitions = {
vdb1 = {
type = "EF00";
size = "100M";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
vdb2 = {
size = "100%";
content = {
type = "bcachefs";
filesystem = "perf_test";
label = "performance-test";
extraFormatArgs = [
"--discard"
"--compression=lz4"
];
};
};
};
};
};
};
bcachefs_filesystems = {
perf_test = {
type = "bcachefs_filesystem";
passwordFile = "/tmp/perf-secret.key";
extraFormatArgs = [
"--compression=lz4"
"--background_compression=lz4"
];
# Performance test configuration with multiple keys
unlock = {
enable = true;
secretFiles = [
./secrets/tpm.jwe
./secrets/fido.jwe
./secrets/tang.jwe
];
extraPackages = [ ];
};
subvolumes = {
"subvolumes/root" = {
mountpoint = "/";
mountOptions = [ "verbose" ];
};
"subvolumes/home" = {
mountpoint = "/home";
};
"subvolumes/nix" = {
mountpoint = "/nix";
};
};
};
};
};
}