From 8cd4641d59aaaa80748235283b2ec48f25250c85 Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Sat, 23 Aug 2025 13:52:27 +0200 Subject: [PATCH] nix: fix outdated references to format.package --- modules/plugins/languages/nix.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/plugins/languages/nix.nix b/modules/plugins/languages/nix.nix index 4b36009f..1fee061b 100644 --- a/modules/plugins/languages/nix.nix +++ b/modules/plugins/languages/nix.nix @@ -18,10 +18,10 @@ formattingCmd = mkIf (cfg.format.enable && cfg.lsp.enable) { formatting = mkMerge [ (mkIf (cfg.format.type == "alejandra") { - command = ["${cfg.format.package}/bin/alejandra" "--quiet"]; + command = [(getExe pkgs.alejandra) "--quiet"]; }) (mkIf (cfg.format.type == "nixfmt") { - command = ["${cfg.format.package}/bin/nixfmt"]; + command = [(getExe pkgs.nixfmt-rfc-style)]; }) ]; };