From ed8263e7d7813ec8f447e78e5dcd7f94f333f1d5 Mon Sep 17 00:00:00 2001 From: Cody Shearer Date: Sat, 13 Jun 2026 18:35:52 -0400 Subject: [PATCH] voxtype: fix output mode `paste` Voxtype requires the command `cat` from `coreutils` when using the output mode `paste`, but fails with the current configuration because it cannot find `cat`. ``` WARN paste (clipboard + keystroke) failed: Text injection failed: wl-copy exited with error, trying next ``` This commit adds `coreutils` to the runtime path to resolve the path to `cat`. --- modules/services/voxtype.nix | 5 ++++- tests/modules/services/voxtype/basic-configuration.nix | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/services/voxtype.nix b/modules/services/voxtype.nix index 46e45ab93..20015d1f7 100644 --- a/modules/services/voxtype.nix +++ b/modules/services/voxtype.nix @@ -141,7 +141,10 @@ in Service = let runtimePath = makeBinPath ( - [ pkgs.which ] + [ + pkgs.coreutils + pkgs.which + ] ++ optionals (cfg.x11.display != null) [ pkgs.xclip ] ++ optionals (cfg.wayland.display != null) [ pkgs.wl-clipboard diff --git a/tests/modules/services/voxtype/basic-configuration.nix b/tests/modules/services/voxtype/basic-configuration.nix index 8defeaa4f..46f16624b 100644 --- a/tests/modules/services/voxtype/basic-configuration.nix +++ b/tests/modules/services/voxtype/basic-configuration.nix @@ -31,7 +31,7 @@ WantedBy=default.target [Service] - Environment=PATH=@which@/bin:@wl-clipboard@/bin:@wtype@/bin + Environment=PATH=/nix/store/00000000000000000000000000000000-coreutils/bin:@which@/bin:@wl-clipboard@/bin:@wtype@/bin Environment=XDG_RUNTIME_DIR=%t Environment=WAYLAND_DISPLAY=wayland-1 Environment=VOXTYPE_TEST_ENV=1