mise: add usage dependency for shell completions

The generated script calls the separate `usage` CLI at completion time,
so add `pkgs.usage` to `home.packages` whenever mise is installed.
Stub it on Darwin test runs via `tests/darwinScrublist.nix`.
This commit is contained in:
Austin Horstman
2026-06-17 09:32:24 -05:00
parent 524d73a903
commit 89fda2248e
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -102,7 +102,11 @@ in
The shell integration will not be added.
'';
home.packages = lib.mkIf (cfg.package != null) [ cfg.package ];
home.packages = lib.mkIf (cfg.package != null) [
cfg.package
# The generated completions call the `usage` CLI at completion time.
pkgs.usage
];
xdg.configFile = {
"mise/config.toml" = mkIf (cfg.globalConfig != { }) {
+1
View File
@@ -194,6 +194,7 @@ let
"topgrade"
"translate-shell"
"tray-tui"
"usage"
"vesktop"
"vifm"
"vim-vint"