chore(nix): Create a flake to be able to run nvim with this config anywhere
This commit is contained in:
parent
4db652b7d4
commit
555baefbbc
2 changed files with 42 additions and 0 deletions
15
flake.nix
Normal file
15
flake.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
description = "My neovim configuration";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }: let
|
||||
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
||||
in {
|
||||
packages.x86_64-linux.default = pkgs.writeShellScriptBin "neovim-kalmenn" ''
|
||||
${pkgs.neovim}/bin/nvim -u ${let fs = pkgs.lib.fileset; in fs.toSource { root = ./.; fileset = fs.gitTracked ./.; }}/init.lua
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue