mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-17 04:58:19 -04:00
replacing root_pool drives
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user