trying out nix
This commit is contained in:
parent
949f4d8565
commit
af36376954
1 changed files with 19 additions and 0 deletions
19
nvim/flake.nix
Normal file
19
nvim/flake.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
description = "Personal neovim configuration";
|
||||||
|
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = { self, nixpkgs, ... }:
|
||||||
|
let
|
||||||
|
system = "x86_64-linux";
|
||||||
|
pkgs = import nixpkgs { inherit system; };
|
||||||
|
in {
|
||||||
|
packages.${system}.nvimConfig = pkgs.runCommand "nvim-config" {} ''
|
||||||
|
mkdir -p $out
|
||||||
|
cp -r ${self}/. $out
|
||||||
|
''
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue