From 6b581441e08d400f645856430886fdabd528c23a Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Tue, 29 Oct 2024 19:19:22 +0100 Subject: [PATCH] fix config, needs mail address --- mini/hardware-configuration.nix | 3 +-- share/common.nix | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) 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.