replacing root_pool drives

This commit is contained in:
2024-10-13 11:53:41 -04:00
parent 3351efa8a5
commit 51fe1f673b
2 changed files with 32 additions and 7 deletions

View File

@@ -7,7 +7,6 @@ in
../common/global ../common/global
../common/optional/ssh_decrypt.nix ../common/optional/ssh_decrypt.nix
../common/optional/syncthing_base.nix ../common/optional/syncthing_base.nix
../common/optional/systemd-boot.nix
../common/optional/zerotier.nix ../common/optional/zerotier.nix
./arch_mirror.nix ./arch_mirror.nix
./docker ./docker

View File

@@ -3,6 +3,24 @@
imports =[ (modulesPath + "/installer/scan/not-detected.nix") ]; imports =[ (modulesPath + "/installer/scan/not-detected.nix") ];
boot = { boot = {
loader = {
grub = {
enable = true;
zfsSupport = true;
efiSupport = true;
mirroredBoots = [
{
devices = [ "nodev" ];
path = "/boot0";
}
{
devices = [ "nodev" ];
path = "/boot1";
}
];
};
efi.canTouchEfiVariables = true;
};
initrd = { initrd = {
availableKernelModules = [ availableKernelModules = [
"ahci" "ahci"
@@ -18,12 +36,12 @@
luks.devices = { luks.devices = {
# cspell:disable # cspell:disable
# Root pool # Root pool
"luks-root-pool-wwn-0x500a0751e6c3c01e-part2" = { "luks-root-pool-wwn-0x55cd2e4150f01519-part2" = {
device = "/dev/disk/by-id/wwn-0x500a0751e6c3c01e-part2"; device = "/dev/disk/by-id/wwn-0x55cd2e4150f01519-part2";
bypassWorkqueues = true; bypassWorkqueues = true;
}; };
"luks-root-pool-wwn-0x500a0751e6c3c01c-part2" = { "luks-root-pool-wwn-0x55cd2e4150f01556-part2" = {
device = "/dev/disk/by-id/wwn-0x500a0751e6c3c01c-part2"; device = "/dev/disk/by-id/wwn-0x55cd2e4150f01556-part2";
bypassWorkqueues = true; bypassWorkqueues = true;
}; };
# Media pool # Media pool
@@ -112,8 +130,16 @@
fsType = "zfs"; fsType = "zfs";
}; };
"/boot" = { "/boot0" = {
device = "/dev/disk/by-id/wwn-0x500a0751e6c3c01e-part1"; device = "/dev/disk/by-id/wwn-0x55cd2e4150f01556-part1";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
"/boot1" = {
device = "/dev/disk/by-id/wwn-0x55cd2e4150f01519-part1";
fsType = "vfat"; fsType = "vfat";
options = [ options = [
"fmask=0077" "fmask=0077"