To test configuration without installing it, run the following command:
nix run github:drxxmy/neovim{
inputs = {
neovim.url = "github:drxxmy/neovim";
};
outputs = {neovim, ...}: let
system = "x86_64-linux";
in {
# Example nixosConfiguration using the configured Neovim package
nixosConfigurations = {
yourHostName = nixpkgs.lib.nixosSystem {
# ...
modules = [
# This will make custom neovim available in your system packages
({pkgs, ...}: {
environment.systemPackages = [neovim.packages.${system}.neovim];
})
];
# ...
};
};
};
}{
inputs = {
home-manager.url = "github:nix-community/home-manager";
neovim.url = "github:drxxmy/neovim";
};
outputs = {home-manager, neovim, ...}: let
system = "x86_64-linux";
in {
# Example Home-Manager configuration using the configured Neovim package
homeConfigurations = {
"user@host" = home-manager.lib.homeManagerConfiguration {
# ...
modules = [
# This will make Neovim available to users using the Home-Manager configuration.
{home.packages = [neovim.packages.${system}.neovim];}
];
# ...
};
};
};
}