aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2020-12-20 21:18:49 +0530
committerAkshay Nair <phenax5@gmail.com>2020-12-20 21:18:49 +0530
commit21850f81071272a84873522b74d2b677bef03ec1 (patch)
treecac7e1e1dd9c5a64ea12b9db37f6012ca992cfa8
parent5d881f3b46e5c293b4eca0cd52d483aa0dabcbf8 (diff)
downloadnixos-config-21850f81071272a84873522b74d2b677bef03ec1.tar.gz
nixos-config-21850f81071272a84873522b74d2b677bef03ec1.zip
Moves nvim overlay to its dir
-rw-r--r--configuration.nix22
-rw-r--r--external/nvim/neovim.nix2
2 files changed, 3 insertions, 21 deletions
diff --git a/configuration.nix b/configuration.nix
index 4492272..2fca5a1 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -104,26 +104,7 @@ in {
};
# Nix config
- nixpkgs.overlays = [ (self: super: {
- tree-sitter-updated = super.tree-sitter.overrideAttrs(oldAttrs: {
- postInstall = ''
- PREFIX=$out make install;
- '';
- });
- neovim-unwrapped = super.neovim-unwrapped.overrideAttrs (oldAttrs: rec {
- name = "neovim-nightly";
- version = "0.5-nightly";
- src = self.fetchFromGitHub {
- owner = "neovim";
- repo = "neovim";
- rev = "nightly";
- sha256 = "0vpjdd32lgzyh85gyazqpms8vmaad6px3zx2svdxhvcdxgschqz9";
- };
-
- nativeBuildInputs = with self.pkgs; [ unzip cmake pkgconfig gettext tree-sitter-updated ];
- });
- })];
-
+ nixpkgs.overlays = [ (import ./external/nvim/neovim.nix) ];
# Packages
environment.systemPackages = with pkgs; [
@@ -142,6 +123,7 @@ in {
w3m
xorg.xrandr
xorg.xmodmap
+ # qutebrowser
mpv
sxiv
diff --git a/external/nvim/neovim.nix b/external/nvim/neovim.nix
index ef0254a..c9f93d0 100644
--- a/external/nvim/neovim.nix
+++ b/external/nvim/neovim.nix
@@ -1,7 +1,7 @@
self: super: {
tree-sitter-updated = super.tree-sitter.overrideAttrs(oldAttrs: {
postInstall = ''
- PREFIX=$out make install;
+ PREFIX=$out make install;
'';
});
neovim-unwrapped = super.neovim-unwrapped.overrideAttrs (oldAttrs: rec {