From 494a7e30ff64511d6ba3c76c0496f33ed32304c5 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Sun, 4 Feb 2024 12:03:57 +0800 Subject: [PATCH] home/nix: update --- home/applications/nix/default.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/home/applications/nix/default.nix b/home/applications/nix/default.nix index a34f6dd..f229529 100644 --- a/home/applications/nix/default.nix +++ b/home/applications/nix/default.nix @@ -5,6 +5,7 @@ alejandra statix deadnix + nixpkgs-fmt # for nixpkgs PRs # Nix helper nh @@ -14,19 +15,20 @@ nix-output-monitor ]; + ### nh + # yes, i know, weird and long path + home.sessionVariables.FLAKE = "/home/guanranwang/Documents/Projects/git-repos/github.com/Guanran928/flake"; + ### VSCode programs.vscode = { - userSettings = { - # Extensions - ## Nix IDE - nix.enableLanguageServer = true; - ### For "nixd" LSP - nix.serverPath = "nil"; - nix.serverSettings.nil = { + extensions = [pkgs.vscode-extensions.jnoortheen.nix-ide]; + userSettings.nix = { + enableLanguageServer = true; + serverPath = "nil"; + serverSettings.nil = { formatting.command = ["alejandra"]; nix.flake.autoArchive = true; }; }; - extensions = [pkgs.vscode-extensions.jnoortheen.nix-ide]; }; }