2024-09-14 11:05:12 +02:00
|
|
|
{ config, lib, pkgs, inputs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (lib) mkEnableOption mkIf readFile;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
home-manager.users.moritz.programs.nixvim = {
|
|
|
|
plugins.lsp = {
|
|
|
|
enable = true;
|
|
|
|
inlayHints = true;
|
2024-11-08 20:13:24 +01:00
|
|
|
servers.rust_analyzer = {
|
|
|
|
enable = true;
|
|
|
|
installRustc = false;
|
|
|
|
installCargo = false;
|
|
|
|
};
|
2024-10-17 11:15:24 +02:00
|
|
|
servers.elixirls.enable = true;
|
|
|
|
servers.nextls.enable = true;
|
2024-10-21 11:19:13 +02:00
|
|
|
servers.nil_ls.enable = true;
|
2024-09-14 11:05:12 +02:00
|
|
|
servers.nixd.enable = true;
|
|
|
|
servers.nixd.extraOptions.settings.nixd = {
|
|
|
|
nixpkgs = {
|
|
|
|
expr = "import <nixpkgs> { }";
|
|
|
|
};
|
|
|
|
options = {
|
|
|
|
nixos = {
|
2024-11-08 19:41:56 +01:00
|
|
|
expr = ''builtins.head (builtins.attrValues ((builtins.getFlake ("git+file://" + toString ./.)).nixosConfigurations).options'';
|
2024-09-14 11:05:12 +02:00
|
|
|
};
|
|
|
|
"flake-parts" = {
|
|
|
|
expr = ''(builtins.getFlake ("git+file://" + toString ./.)).debug.options'';
|
|
|
|
};
|
|
|
|
"flake-parts2" = {
|
|
|
|
expr = ''(builtins.getFlake ("git+file://" + toString ./.)).currentSystem.options'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|