From 3e90ceb22af151eb894863e169a821dc1e7e7d11 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Thu, 31 Oct 2024 07:03:33 -0500 Subject: [PATCH] update nil settings and add glow --- .vscode/settings.json | 17 +++++++++++++++-- nixos/profiles/role-dev.nix | 1 + 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 63972a6..64005e7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,12 +8,25 @@ "files.trimTrailingWhitespace": true, "sops.defaults.ageKeyFile": "age.key", "nix.enableLanguageServer": true, - "nix.serverPath": "/run/current-system/sw/bin/nixd", + "nix.serverPath": "/run/current-system/sw/bin/nil", "nix.formatterPath": "/run/current-system/sw/bin/nixfmt", "nix.serverSettings": { - "nixd": { + "nil": { "formatting": { "command": ["nixfmt"] + }, + "diagnostics": { + "ignored": [], + "excludedFiles": [] + }, + }, + "nix": { + "binary": "/run/current-system/sw/bin/nix", + "maxMemoryMB": null, // disable memory limit + "flake": { + "autoEvalInputs": true, + "autoArchive": true, + "nixpkgsInputName": "nixpkgs" } } } diff --git a/nixos/profiles/role-dev.nix b/nixos/profiles/role-dev.nix index 7404cd3..fa96c85 100644 --- a/nixos/profiles/role-dev.nix +++ b/nixos/profiles/role-dev.nix @@ -41,6 +41,7 @@ # charmbracelet tools gum + unstable.glow vhs mods soft-serve