nix-config
nixvim
Our great sponsors
nix-config | nixvim | |
---|---|---|
5 | 11 | |
739 | 1,160 | |
- | 16.8% | |
8.8 | 9.9 | |
7 days ago | about 2 hours ago | |
Nix | Nix | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nix-config
-
Best way to setup Nvim on NixOS?
Power user, gvolpe has a great config that heavily customizes nvim.
-
Adding a Flake to my Config
I forked and customized a fairly advanced Nixos configuration that I can load from a flake on github. (Mine | Original)
-
Host-specific settings (different approaches)
I think gvolpe's nix-config repo is what u/ppen9u1n was referencing. Looks like there might be some good ideas to mine there.
-
Trying to port all official Cardano software to an open architecture and a more elegant Linux distro than Debian (NixOS on Risc-V) and this is the pushback I get.
I've seen this done with flakes by a NixOS power user named gvolpe. He has it configured to automatically setup each of his different systems with Home Manager, a custom UI, etc. His three different build targets are:
-
Nix-GUI: Make NixOS usable for non-technical users through settings / GUI
I think NixOS would benefit from easily accessible collection of opinionated modules/profiles/configurations with minimal set of options. Something like gnome-desktop / sway-desktop / etc. Gnome actually does pretty good job here.
The point is: currently my NixOS and Home Manager configurations have over 2k LOC total. When you search for configurations on GitHub/Google you are likely to find complex ones. For example, quick search for "nixos gnome" (Google) gives me link to NixOS Wiki (which describes only Gnome part) and blog post (https://gvolpe.com/blog/gnome3-on-nixos/) which is useful but links to really huge configuration (https://github.com/gvolpe/nix-config) that is overwhelming to any beginner.
Great example of such approach is nixos-hardware (https://github.com/NixOS/nixos-hardware) which provides one-line configuration covering hardware quirks.
nixvim
-
Use traditional config on nixos with nixvim
# .../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"; }; }
-
Nix flakes + IDE integration?
For NeoVim there is https://github.com/nix-community/nixvim. I wrote a blog post some time ago how you can achieve integrated development tooling with flakes + nixvim: https://juuso.dev/blogPosts/modular-neovim/modular-neovim-with-nix.html
- NixVim – A Neovim configuration system for Nix
-
Packaging neovim configuration using Nix
I would propose to try Nixvim.
-
Neovim flake Updates
Cool. Have you checked nixvim? Tons of options, and quite straightforward to include your own in the right place.
-
using NixOS as a developer
I use plain in the sense that it isn't configured for me, but I use this flake to make it easy to do so myself https://github.com/pta2002/nixvim
-
Nixvim: A Neovim configuration system for nix
I am one of the maintainers of nixvim and I wanted to present it here.
-
Settings for a neovim plugin in home-manager
This isn't exactly the answer for your problem but I've been using this for my config and haven't looked back. https://github.com/pta2002/nixvim
-
Best way to setup Nvim on NixOS?
Now, if you want to adopt a more "nixy" approach, I suggest you to take a look at nixvim. I do not use this project personally but it looks very promising.
- NixVim: Configure Neovim with Nix
What are some alternatives?
devshell - Per project developer environments
neovim-copilot-nix-bundle - Run Neovim with GitHub Copilot out of the box
impermanence - Modules to help you handle persistent state on systems with ephemeral root storage [maintainer=@talyz]
nixos-configuration
nix-direnv - A fast, persistent use_nix/use_flake implementation for direnv [maintainer=@Mic92 / @bbenne10]
template-rust - A template for rust projects utilizing Nix flakes
visual-studio-code-insiders-nix - The latest Visual Studio Code Insiders build updated daily
nvim-nix - A reproducible batteries-included neovim config
nixpkgs - My Nix system configs!
neovim-flake - Nix flake for neovim with configuration
dotfiles - My dotfiles
nvim - Straightforward and pure Lua based Neovim configuration for my work as DevOps/Cloud Engineer with batteries included for Python, Golang, and, of course, YAML