diff --git a/lib/modules/partition/disks.nix b/lib/modules/partition/disks.nix index 9e761b4d..3e651b78 100644 --- a/lib/modules/partition/disks.nix +++ b/lib/modules/partition/disks.nix @@ -346,6 +346,7 @@ (builtins.filter (_: _.useSwap) partitions)); in lib.strings.concatLines ([ "#!/bin/bash" + "set -o errexit" ] ++ (builtins.map (_: _.deviceScript) disks) ++ lib.optionals ((builtins.length disks) > 0) [