flake/dev: fix nix-output-monitor

- Bash resolves `'${VAR:-0}'` as literal string `'${VAR:-0}'`, instead
we want a value from `$VAR`.
- Proper package name for NOM is `nix-output-monitor`, not `nom`.
This commit is contained in:
PerchunPak 2024-06-27 17:30:05 +02:00
parent 35e837c10b
commit 0957f5fd89
No known key found for this signature in database
GPG key ID: 313F67D1EAB770F9

View file

@ -16,7 +16,7 @@
commands = commands =
let let
# Thanks to this, the user can choose to use `nix-output-monitor` (`nom`) instead of plain `nix` # Thanks to this, the user can choose to use `nix-output-monitor` (`nom`) instead of plain `nix`
nix = "$([ '$\{NIXVIM_NOM:-0}' = '1' ] && echo ${pkgs.lib.getExe pkgs.nom} || echo nix)"; nix = ''$([ "$\{NIXVIM_NOM:-0}" = '1' ] && echo ${pkgs.lib.getExe pkgs.nix-output-monitor} || echo nix)'';
in in
[ [
{ {