[nix] Split up program configs into files

Co-Authored-By: Winter <winter@winter.cafe>
This commit is contained in:
Alyxia Sother 2023-06-09 18:25:33 +02:00
parent 3530a88e81
commit 849c0fef38
No known key found for this signature in database
GPG key ID: 01E16C4E775A37E4
4 changed files with 61 additions and 51 deletions

27
nix/hosts/alymac/nvim.nix Normal file
View file

@ -0,0 +1,27 @@
{ dotfiles, ... }:
{
programs.neovim = {
enable = true;
package = pkgs.neovim-unwrapped;
extraConfig = "source ${dotfiles}/nvim/init.vim";
coc = {
enable = true;
settings = {
languageServer = {
nix = {
command = "rnix-lsp";
filetypes = [ "nix" ];
};
"go.goPlsOptions" = {
completion = true;
completeUnimported = true;
};
};
};
};
};
}