diff --git a/lib/modules/partition/disks.nix b/lib/modules/partition/disks.nix index 75740de1..e677b46c 100644 --- a/lib/modules/partition/disks.nix +++ b/lib/modules/partition/disks.nix @@ -8,9 +8,13 @@ fs = import ./fs.nix; diskListVarName = "myDisks"; - probeScript = "partprobe 2> /dev/null || true"; isSwap = partition: builtins.elem partition.type [fs.swap 19]; + probeScript = builtins.concatStringsSep "\n" [ + "partprobe 2> /dev/null || true" + "udevadm trigger" + ]; + mkDiskType = osDisk: types.submodule ( { config, name, ... }: { options = {