Compare commits

...

3 Commits

Author SHA1 Message Date
92ab3eb6d6 lock disk to sdb
Some checks failed
/ perform flake analysis (push) Successful in 36s
/ build hive configuration (push) Failing after 27s
2026-01-16 22:18:44 +01:00
92b6f03db1 luks 2026-01-16 22:18:44 +01:00
fa6bd362c8 single disk array 2026-01-16 22:18:44 +01:00

View File

@@ -50,50 +50,7 @@
};
};
# 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";
content = {
type = "gpt";
partitions = {
crypt_p = {
size = "100%";
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 = {
@@ -103,7 +60,7 @@
size = "100%";
content = {
type = "luks";
name = "p_data1";
name = "p_data";
# 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";