34 lines
968 B
Nix
34 lines
968 B
Nix
{ config, lib, pkgs, inputs, ... }:
|
|
|
|
let
|
|
inherit (lib) mkEnableOption mkIf readFile;
|
|
in
|
|
{
|
|
home-manager.users.moritz.programs.nixvim = {
|
|
plugins.lsp = {
|
|
enable = true;
|
|
inlayHints = true;
|
|
servers.elixirls.enable = true;
|
|
servers.nextls.enable = true;
|
|
servers.nil_ls.enable = true;
|
|
servers.nixd.enable = true;
|
|
servers.nixd.extraOptions.settings.nixd = {
|
|
nixpkgs = {
|
|
expr = "import <nixpkgs> { }";
|
|
};
|
|
options = {
|
|
nixos = {
|
|
expr = ''builtins.head (builtins.attrValues ((builtins.getFlake ("git+file://" + toString ./.)).nixosConfigurations).options'';
|
|
};
|
|
"flake-parts" = {
|
|
expr = ''(builtins.getFlake ("git+file://" + toString ./.)).debug.options'';
|
|
};
|
|
"flake-parts2" = {
|
|
expr = ''(builtins.getFlake ("git+file://" + toString ./.)).currentSystem.options'';
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|