refactor(flake): move nvim config to a package

Add it as a package instead of symlinking it into the `~/.config.nvim`
directory.
This commit is contained in:
Oliver Davies 2023-08-07 09:43:48 +01:00
parent 2140439032
commit f570b44606
2 changed files with 8 additions and 6 deletions

View file

@ -12,7 +12,12 @@
systems = [ "x86_64-linux" ];
perSystem = { pkgs, self', nixpkgs, ... }: {
packages.default = self'.packages.activate;
packages = {
opdavies-nvim = pkgs.vimUtils.buildVimPlugin {
name = "opdavies-nvim";
src = ./config/neovim;
};
};
formatter = pkgs.nixpkgs-fmt;
};

View file

@ -203,6 +203,8 @@ in
# Themes
vimPlugins.catppuccin-nvim
inputs.self.packages.${pkgs.system}.opdavies-nvim
];
extraPackages = with pkgs; [
@ -254,11 +256,6 @@ in
recursive = true;
};
xdg.configFile.nvim = {
source = ../../config/neovim;
recursive = true;
};
xdg.configFile.phpactor = {
source = ../../config/phpactor;
recursive = true;