-
-
Notifications
You must be signed in to change notification settings - Fork 294
Expand file tree
/
Copy pathluks-interactive-login.nix
More file actions
44 lines (43 loc) · 1.14 KB
/
luks-interactive-login.nix
File metadata and controls
44 lines (43 loc) · 1.14 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
{
disko.devices = {
disk = {
vdb = {
type = "disk";
device = "/dev/vdb";
content = {
type = "gpt";
partitions = {
ESP = {
size = "500M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
luks = {
size = "100%";
content = {
type = "luks";
name = "crypted";
settings.allowDiscards = true;
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
};
# If we don't set passwordFile above, we will be interactively prompted by the
# disko script to set the LUKS password. However, as passwordFile is necessary
# for installTest we set it here.
disko.tests.extraDiskoConfig = {
devices.disk.vdb.content.partitions.luks.content.passwordFile = "/tmp/secret.key";
};
}