diff --git a/mini/hardware-configuration.nix b/mini/hardware-configuration.nix index b9a2ac5..69d8a69 100644 --- a/mini/hardware-configuration.nix +++ b/mini/hardware-configuration.nix @@ -24,8 +24,7 @@ neededForBoot = true; }; - # encrypted system - on a md device - boot.swraid.enable = true; + # encrypted system boot.initrd.luks.devices."crypt-system" = { device = "/dev/disk/by-uuid/565695e2-a09b-412b-9f26-4da10402b967"; allowDiscards = true; diff --git a/share/common.nix b/share/common.nix index bf1d577..6b20bdd 100644 --- a/share/common.nix +++ b/share/common.nix @@ -26,6 +26,12 @@ in # use the latest kernel boot.kernelPackages = pkgs.linuxPackages_latest; + # allow md devices + boot.swraid.enable = true; + boot.swraid.mdadmConf = '' + MAILADDR=christoph@cullmann.io + ''; + # my kernel parameters boot.kernelParams = [ # don't check for split locks, for KVM and Co.