~ruther/nixos-config

bef7659f3249218fa636338e1eccc7d6d3cc6fe7 — Frantisek Bohacek 1 year, 5 months ago f7c5abf
feat: add nil nix lsp to devshell
3 files changed, 13 insertions(+), 0 deletions(-)

A .envrc
M flake.nix
M modules/editors/emacs/doom.d/config.el
A .envrc => .envrc +1 -0
@@ 0,0 1,1 @@
use flake

M flake.nix => flake.nix +10 -0
@@ 38,6 38,10 @@
    let                                                                     # Variables that can be used in the config files.
      user = "ruther";
      location = "$HOME/.setup";

      pkgs = import nixpkgs {
        system = "x86_64-linux";
      };
    in                                                                      # Use above variables in ...
    {
      nixosConfigurations = (                                               # NixOS configurations


@@ 53,5 57,11 @@
          inherit inputs nixpkgs nixpkgs-stable home-manager nixgl user location;
        }
      );

      devShells.x86_64-linux.default = pkgs.mkShell {
        packages = [
          pkgs.nil
        ];
      };
    };
}

M modules/editors/emacs/doom.d/config.el => modules/editors/emacs/doom.d/config.el +2 -0
@@ 80,6 80,8 @@

(setq doom-localleader-key ",")

(add-hook 'nix-mode-hook #'lsp)

(map! :leader
      "c d" 'lsp-ui-doc-show
      "c m" #'+make/run)

Do not follow this link