Move dependencies into the Neovim flake
Move all plugins and dependencies from dotfiles.nix to the `neovim`
package in opdavies.nvim.
Based on 2fdd35dd39/lib/default.nix.
This commit is contained in:
parent
2caa74232a
commit
87bf614625
2 changed files with 328 additions and 18 deletions
33
flake.nix
33
flake.nix
|
|
@ -1,26 +1,23 @@
|
|||
{
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
|
||||
outputs = inputs@{ flake-parts, self, ... }:
|
||||
outputs = inputs@{ self, flake-parts, ... }:
|
||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||
flake = {
|
||||
lib = import ./lib { inherit inputs; };
|
||||
};
|
||||
|
||||
systems = [ "x86_64-linux" ];
|
||||
|
||||
perSystem = { pkgs, self', ... }: {
|
||||
packages = {
|
||||
default = pkgs.vimUtils.buildVimPlugin {
|
||||
name = "opdavies";
|
||||
postInstall = ''
|
||||
rm $out/.envrc
|
||||
rm $out/flake.lock
|
||||
rm $out/flake.nix
|
||||
rm $out/run
|
||||
rm $out/stylua.toml
|
||||
'';
|
||||
src = ./.;
|
||||
};
|
||||
};
|
||||
perSystem = { pkgs, self', system, ... }:
|
||||
let
|
||||
default = self.lib.mkVimPlugin { inherit system; };
|
||||
neovim = self.lib.mkNeovim { inherit system; };
|
||||
in
|
||||
{
|
||||
packages = { inherit default neovim; };
|
||||
|
||||
formatter = pkgs.nixpkgs-fmt;
|
||||
};
|
||||
};
|
||||
formatter = pkgs.nixpkgs-fmt;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue