From 0957f5fd8946c91b230fa10a4c48978432e92997 Mon Sep 17 00:00:00 2001 From: PerchunPak Date: Thu, 27 Jun 2024 17:30:05 +0200 Subject: [PATCH] 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`. --- flake-modules/dev/devshell.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake-modules/dev/devshell.nix b/flake-modules/dev/devshell.nix index c0231567..fa5e494e 100644 --- a/flake-modules/dev/devshell.nix +++ b/flake-modules/dev/devshell.nix @@ -16,7 +16,7 @@ commands = let # 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 [ {