bemenu: revert back to toCommandLineShell

Just reverting back to manual approach for backwards compatibility.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman 2026-01-20 09:02:29 -06:00
parent 9c5f8aceb6
commit 987271a659
2 changed files with 8 additions and 2 deletions

View file

@ -54,7 +54,13 @@ in
home.packages = lib.mkIf (cfg.package != null) [ cfg.package ];
home.sessionVariables = lib.mkIf (cfg.settings != { }) {
BEMENU_OPTS = lib.cli.toCommandLineShellGNU { } cfg.settings;
# Not using `toCommandLineShellGNU` since it doesn't handle short form options with empty strings
# https://github.com/nix-community/home-manager/issues/8544
BEMENU_OPTS = lib.cli.toCommandLineShell (optionName: {
option = if builtins.stringLength optionName > 1 then "--${optionName}" else "-${optionName}";
sep = null;
explicitBool = false;
}) cfg.settings;
};
};
}