Add initial flake
This commit is contained in:
parent
437bde1cfa
commit
60bcf130a7
3 changed files with 89 additions and 0 deletions
25
flake.nix
Normal file
25
flake.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
|
||||
outputs = inputs@{ flake-parts, self, ... }:
|
||||
flake-parts.lib.mkFlake { 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/stylua.toml
|
||||
'';
|
||||
src = ./.;
|
||||
};
|
||||
};
|
||||
|
||||
formatter = pkgs.nixpkgs-fmt;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in a new issue