From 28110c3e858244e3e45585f8c2fd6250898213ac Mon Sep 17 00:00:00 2001 From: Colin Date: Fri, 5 Apr 2024 04:42:33 +0000 Subject: [PATCH] fix system hang during vim ctrl+z (disable io_uring in libuv) --- hosts/common/hardware/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hosts/common/hardware/default.nix b/hosts/common/hardware/default.nix index 1b2ac8d1..ce765c8b 100644 --- a/hosts/common/hardware/default.nix +++ b/hosts/common/hardware/default.nix @@ -35,6 +35,16 @@ # servo needs zfs though, which doesn't support every kernel. boot.kernelPackages = lib.mkDefault pkgs.zfs.latestCompatibleLinuxPackages; + # TODO: remove after linux 6.9. see: + # - + # - + # when removing, try starting and suspending (ctrl+z) two instances of neovim simultaneously. + # if the system doesn't freeze, then this is safe to remove. + # added 2024-04-04 + sane.user.fs.".profile".symlink.text = lib.mkBefore '' + export UV_USE_IO_URING=0 + ''; + # hack in the `boot.shell_on_fail` arg since that doesn't always seem to work. boot.initrd.preFailCommands = "allowShell=1";