Add initial flake

This commit is contained in:
Oliver Davies 2024-01-23 21:33:40 +00:00
parent 437bde1cfa
commit 60bcf130a7
3 changed files with 89 additions and 0 deletions

25
flake.nix Normal file
View 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;
};
};
}