From 51011f200db8f1d598c613131d58828f0e9d9fe0 Mon Sep 17 00:00:00 2001 From: Nydragon Date: Sun, 20 Oct 2024 10:53:35 +0000 Subject: [PATCH] feat: add neovim conf as input --- flake.lock | 21 +++++++++++++++++++++ flake.nix | 5 +++++ home/terminal/neovim/default.nix | 2 -- modules/nix/overlays.nix | 2 ++ 4 files changed, 28 insertions(+), 2 deletions(-) diff --git a/flake.lock b/flake.lock index 1490f7e..8f1c97a 100644 --- a/flake.lock +++ b/flake.lock @@ -314,6 +314,26 @@ "type": "github" } }, + "neovim": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1729421151, + "narHash": "sha256-4vXBq3gKoRVvCO0LkzqYkurrRbCtiPooAanl1zGu5/o=", + "ref": "refs/heads/main", + "rev": "2b17334f38bf58b6d5f6545014eb0d41368dec32", + "revCount": 68, + "type": "git", + "url": "https://git.ccnlc.eu/Nydragon/neovim.git" + }, + "original": { + "type": "git", + "url": "https://git.ccnlc.eu/Nydragon/neovim.git" + } + }, "nixos-hardware": { "locked": { "lastModified": 1728056216, @@ -462,6 +482,7 @@ "home-manager": "home-manager_2", "hyprland": "hyprland", "hyprlock": "hyprlock", + "neovim": "neovim", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs_2", "nysh": "nysh", diff --git a/flake.nix b/flake.nix index 8a8671a..5a34450 100644 --- a/flake.nix +++ b/flake.nix @@ -47,6 +47,11 @@ url = "git+https://git.ccnlc.eu/Nydragon/flakey-rustypaste.git"; inputs.nixpkgs.follows = "nixpkgs"; }; + + neovim = { + url = "git+https://git.ccnlc.eu/Nydragon/neovim.git"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = diff --git a/home/terminal/neovim/default.nix b/home/terminal/neovim/default.nix index 0a893c2..0f2aed8 100644 --- a/home/terminal/neovim/default.nix +++ b/home/terminal/neovim/default.nix @@ -1,8 +1,6 @@ -{ pkgs, inputs', ... }: { programs.neovim = { defaultEditor = true; - package = inputs'.neovim.packages.default; viAlias = true; vimAlias = true; enable = true; diff --git a/modules/nix/overlays.nix b/modules/nix/overlays.nix index c0f4de9..f0e6bba 100644 --- a/modules/nix/overlays.nix +++ b/modules/nix/overlays.nix @@ -37,6 +37,8 @@ #xdg-desktop-portal-hyprland = inputs'.hyprland.packages.xdg-desktop-portal-hyprland; hyprlock = inputs'.hyprlock.packages.hyprlock; + + neovim = inputs'.neovim.packages.default; }) inputs.rustypaste.overlays.default ];