Im trying to build a standalone package for my neovim configuration, have been folowing tutorials and the manual and i got it runnig when using nix run .
on dir, now im trying to add it to my configuration but im not sure how to do it and the way i did, im getting an error saying the path to neovim doesnt exist, my configuration is on a git repo and my neovim flake is in another which is a submodule of the main repo. everything is checked out with main branch, what am i doing wrong?
configuration flake
{
description = "Nixos config flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
neovim.url = "path:./flakes/neovim";
};
outputs = { self, nixpkgs, ... }@inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
nixosConfigurations = {
user = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
{ environment.systemPackages = [ inputs.neovim.defaultPackage.${system} ]; }
inputs.home-manager.nixosModules.default
./hosts/user/configuration.nix
];
};
};
};
}
package flake
{
description = "my neovim config using nvf";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nvf.url = "github:notashelf/nvf";
};
outputs = { self, nixpkgs, ... }@inputs:
let
system = "x86_64-linux";
in
{
packages.${system}.default =
( inputs.nvf.lib.neovimConfiguration {
inherit (nixpkgs.legacyPackages.${system}) pkgs;
modules = [ ./nvf-configuration.nix ];
}).neovim;
};
}