Compare commits
2 Commits
c2f8b28b5d
...
disk
| Author | SHA1 | Date | |
|---|---|---|---|
| 07ae2f1996 | |||
| 679e8e2781 |
@@ -50,31 +50,9 @@
|
||||
};
|
||||
};
|
||||
|
||||
# data1 = {
|
||||
# type = "disk";
|
||||
# device = "/dev/sda";
|
||||
# content = {
|
||||
# type = "gpt";
|
||||
# partitions = {
|
||||
# crypt_p1 = {
|
||||
# size = "100%";
|
||||
# content = {
|
||||
# type = "luks";
|
||||
# name = "p_data1"; # device-mapper name when decrypted
|
||||
# # Remove settings.keyFile if you want to use interactive password entry
|
||||
# settings = {
|
||||
# allowDiscards = true;
|
||||
# keyFile = "/dev/disk/by-uuid/2021-07-11-12-33-27-00";
|
||||
# keyFileSize = 4096;
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
data = {
|
||||
type = "disk";
|
||||
device = "/dev/sdc";
|
||||
device = "/dev/sda";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
@@ -83,27 +61,6 @@
|
||||
content = {
|
||||
type = "luks";
|
||||
name = "p_data";
|
||||
settings = {
|
||||
allowDiscards = true;
|
||||
keyFile = "/dev/disk/by-uuid/2021-07-11-12-33-27-00";
|
||||
keyFileSize = 4096;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
data1 = {
|
||||
type = "disk";
|
||||
device = "/dev/sdb";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
crypt_p = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "luks";
|
||||
name = "p_data1";
|
||||
# Remove settings.keyFile if you want to use interactive password entry
|
||||
settings = {
|
||||
allowDiscards = true;
|
||||
@@ -112,10 +69,6 @@
|
||||
};
|
||||
content = {
|
||||
type = "btrfs";
|
||||
extraArgs = [
|
||||
"-d raid0"
|
||||
"/dev/mapper/p_data3" # Use decrypted mapped device, same name as defined in disk1
|
||||
];
|
||||
subvolumes = {
|
||||
"/" = {
|
||||
mountpoint = "/mnt/fs";
|
||||
|
||||
Reference in New Issue
Block a user