feat: moved capibara's root to a different disk

feat/kile-v2
Ricard Illa 2023-04-27 14:59:47 +02:00
parent a80abd99c9
commit 6b09d4c536
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
1 changed files with 23 additions and 16 deletions

View File

@ -39,8 +39,14 @@ in {
options = [ "subvolid=5" "compress=zstd" ]; options = [ "subvolid=5" "compress=zstd" ];
}; };
"/mnt/btr_data" = {
device = "/dev/mapper/data";
fsType = "btrfs";
options = [ "subvolid=5" "compress=zstd" ];
};
"/mnt/persist" = { "/mnt/persist" = {
device = "/dev/mapper/root"; device = "/dev/mapper/data";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=persist" "compress=zstd" ]; options = [ "subvol=persist" "compress=zstd" ];
neededForBoot = true; neededForBoot = true;
@ -54,7 +60,7 @@ in {
}; };
"/mnt/data" = { "/mnt/data" = {
device = "/dev/mapper/root"; device = "/dev/mapper/data";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=data" "compress=zstd" ]; options = [ "subvol=data" "compress=zstd" ];
neededForBoot = true; neededForBoot = true;
@ -67,9 +73,8 @@ in {
}; };
"/boot" = { "/boot" = {
device = "/dev/mapper/root"; device = "/dev/disk/by-uuid/c99d1f1b-45a4-4a25-b5b8-bc76464c6825";
fsType = "btrfs"; fsType = "ext4";
options = [ "subvol=boot" "compress=zstd" ];
}; };
"/swap" = { "/swap" = {
@ -79,7 +84,7 @@ in {
}; };
"/mnt/vfs_share" = { "/mnt/vfs_share" = {
device = "/dev/mapper/root"; device = "/dev/mapper/data";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=vfs_share" "compress=zstd" ]; options = [ "subvol=vfs_share" "compress=zstd" ];
}; };
@ -137,21 +142,23 @@ in {
efiInstallAsRemovable = false; efiInstallAsRemovable = false;
enable = true; enable = true;
version = 2; version = 2;
# device = "/dev/disk/by-id/ata-KINGSTON_SKC600MS512G_50026B7783FC3D2F"; device = "/dev/disk/by-id/ata-KINGSTON_SKC600MS512G_50026B7783FC3D2F";
device = "/dev/disk/by-id/ata-WDC_WDBNCE0010PNC_21112S803178";
enableCryptodisk = true;
}; };
}; };
initrd = { initrd = {
luks.devices = { luks = {
root = { devices = {
device = "/dev/disk/by-uuid/0fdb839e-dee8-4374-81e6-4455cfc3ae39"; root = {
keyFile = "/keyfile.bin"; device = "/dev/disk/by-uuid/869b4b9e-5004-4625-877f-6b1c9489ac8f";
allowDiscards = true; allowDiscards = true;
};
data = {
device = "/dev/disk/by-uuid/0fdb839e-dee8-4374-81e6-4455cfc3ae39";
allowDiscards = true;
};
}; };
reusePassphrases = true;
}; };
# secrets = { "/keyfile.bin" = "/boot/keyfile.bin"; };
secrets = { "/keyfile.bin" = "/etc/luks-keys/root.bin"; };
}; };
}; };