PC-Fixe: migration ZFS miroir

This commit is contained in:
nyanloutre 2019-10-15 21:38:23 +02:00
parent e10c46d37e
commit f5c0934933
2 changed files with 18 additions and 7 deletions

View file

@ -8,7 +8,8 @@
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
];
boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "firewire_ohci" "pata_marvell" "xhci_pci" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "nvme" "firewire_ohci" "pata_marvell" "xhci_pci" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" "nct6775" ];
boot.extraModulePackages = [ ];
@ -17,12 +18,17 @@
hardware.cpu.intel.updateMicrocode = true;
fileSystems."/" =
{ device = "/dev/disk/by-uuid/509a5842-56fe-40bd-8b00-6bda87e02e5e";
fsType = "ext4";
{ device = "rpool/root/nixos";
fsType = "zfs";
};
fileSystems."/home" =
{ device = "rpool/home";
fsType = "zfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/A225-07A5";
{ device = "/dev/disk/by-uuid/F4EC-57DF";
fsType = "vfat";
};