My Neovim configuration uses nixvim, with lazy loading handled by the plugin lazy.nvim.
- Temporarily use it in the terminal:
nix run "github:Ruixi-rebirth/nvim-flake#lazynvim"
- Use as a package:
{
inputs = {
nvim-flake.url = "github:Ruixi-rebirth/nvim-flake";
};
outputs = inputs: {
nixosConfigurations."my-laptop-hostname" =
let system = "x86_64-linux";
in nixpkgs.lib.nixosSystem {
inherit system;
modules = [({pkgs, config, ... }: {
config = {
nix.settings = {
# add binary caches
trusted-public-keys = [
"ruixi-rebirth.cachix.org-1:ypGqoIU9MfXwv/fE02ZGg8mutJqmcYHgLTR1DMoPGac="
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
];
substituters = [
"https://ruixi-rebirth.cachix.org"
"https://cache.nixos.org"
];
};
# pull specific packages (built against inputs.nixpkgs, usually `nixos-unstable`)
environment.systemPackages = [
inputs.nvim-flake.packages.${system}.lazynvim
];
};
})];
};
};
}