Skip to content

Ruixi-rebirth/nvim-flake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruixi-rebirth'nvim

My Neovim configuration uses nixvim, with lazy loading handled by the plugin lazy.nvim.

Cachix Cache Build and populate cache

Flake Usage

  • 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
          ];
        };
      })];
    };
  };
}