From eb1bff4ae3329dbfe0fdecb06f71c9ab7d0cf92b Mon Sep 17 00:00:00 2001 From: Florian Peter <4farlion@gmail.com> Date: Mon, 21 Apr 2025 19:43:44 +0100 Subject: [PATCH] feat(wiping): switch to safer default Use of boot.initdr.postDeviceCommands can cause FS corruption with hibernation See https://github.com/nix-community/impermanence Closes #3 --- final/configuration.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/final/configuration.nix b/final/configuration.nix index 3248d68..74edc86 100644 --- a/final/configuration.nix +++ b/final/configuration.nix @@ -19,7 +19,7 @@ extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. }; - boot.initrd.postDeviceCommands = lib.mkAfter '' + boot.initrd.postResumeCommands = lib.mkAfter '' mkdir /btrfs_tmp mount /dev/root_vg/root /btrfs_tmp if [[ -e /btrfs_tmp/root ]]; then