feat: moved capibara's root to a different disk
parent
a80abd99c9
commit
6b09d4c536
33
capibara.nix
33
capibara.nix
|
@ -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 = {
|
||||||
|
devices = {
|
||||||
root = {
|
root = {
|
||||||
|
device = "/dev/disk/by-uuid/869b4b9e-5004-4625-877f-6b1c9489ac8f";
|
||||||
|
allowDiscards = true;
|
||||||
|
};
|
||||||
|
data = {
|
||||||
device = "/dev/disk/by-uuid/0fdb839e-dee8-4374-81e6-4455cfc3ae39";
|
device = "/dev/disk/by-uuid/0fdb839e-dee8-4374-81e6-4455cfc3ae39";
|
||||||
keyFile = "/keyfile.bin";
|
|
||||||
allowDiscards = true;
|
allowDiscards = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# secrets = { "/keyfile.bin" = "/boot/keyfile.bin"; };
|
reusePassphrases = true;
|
||||||
secrets = { "/keyfile.bin" = "/etc/luks-keys/root.bin"; };
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue