Use traditional config on nixos with nixvim

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • nvim

  • # .../nixvim.nix { config, pkgs, lib, ... }: let myConfig = builtins.fetchGit { url = "https://github.com/myusername/nvim"; ref = "master"; }; nixvim = import (builtins.fetchGit { url = "https://github.com/nix-community/nixvim"; ref = "nixos-23.05"; }); sqliteLibPath = lib.makeLibraryPath [ pkgs.sqlite ]; in { imports = [ nixvim.homeManagerModules.nixvim ]; home.activation.copyLuaConfig = lib.hm.dag.entryAfter [ "writeBoundary" ] '' if [ ! -d ${config.xdg.configHome}/nvim ]; then mkdir -p ${config.xdg.configHome}/nvim fi shopt -s extglob cp -r ${myConfig}/!(init.lua) ${config.xdg.configHome}/nvim ''; programs.nixvim = { extraPackages = [ pkgs.sqlite ]; enable = true; extraConfigLua = '' vim.g.sqlite_clib_path = "${sqliteLibPath}" .. "/libsqlite3.so" '' + builtins.readFile "${myConfig}/init.lua"; }; }

  • nixvim

    Configure Neovim with Nix! [maintainer=@pta2002, @traxys, @GaetanLepage]

  • # .../nixvim.nix { config, pkgs, lib, ... }: let myConfig = builtins.fetchGit { url = "https://github.com/myusername/nvim"; ref = "master"; }; nixvim = import (builtins.fetchGit { url = "https://github.com/nix-community/nixvim"; ref = "nixos-23.05"; }); sqliteLibPath = lib.makeLibraryPath [ pkgs.sqlite ]; in { imports = [ nixvim.homeManagerModules.nixvim ]; home.activation.copyLuaConfig = lib.hm.dag.entryAfter [ "writeBoundary" ] '' if [ ! -d ${config.xdg.configHome}/nvim ]; then mkdir -p ${config.xdg.configHome}/nvim fi shopt -s extglob cp -r ${myConfig}/!(init.lua) ${config.xdg.configHome}/nvim ''; programs.nixvim = { extraPackages = [ pkgs.sqlite ]; enable = true; extraConfigLua = '' vim.g.sqlite_clib_path = "${sqliteLibPath}" .. "/libsqlite3.so" '' + builtins.readFile "${myConfig}/init.lua"; }; }

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • neovim-flake

    standalone neovim flake with my configuration (by konradmalik)

  • Also feel free to take a look at my neovim flake: https://github.com/konradmalik/neovim-flake

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts