When building NixVim via Nix flakes, I get a Lua runtime error in the generated init.lua file. The error occurs immediately when launching nixvim.
Error detected while processing /nix/store/196saxghgkmg4dypms6nvgdgipvann40-init.lua:
E5113: Error while calling lua chunk: /nix/store/196saxghgkmg4dypms6nvgdgipvann40-init.lua:0: attempt to call a nil valuestack traceback:/nix/store/196saxghgkmg4dypms6nvgdgipvann40-init.lua: in function </nix/store/196saxghgkmg4dypms6nvgdgipvann40-init.lua:0>Press ENTER or type command to continue
I tried opening up the provided path in the editor, and it include a weird letter at line 1: eLJ thought i must have entered a typo in extraConfigLua but it ainβt the case.633 lines of transformed texts and the first line seemed a little weird. I tried disabling plugins and stuffs, errors keep appearing i removed results (build artifacts folder too), did removed the symlink from the store too and did nix collect garbage too but it does not seem to be working , i am not very fluent at nix and have poor debugging skillswould be very helpful if you could help me out system details : nix (Nix) 2.33.1+1
nix-env (Nix) 2.33.1+1
- system: βx86_64-linuxβ
- host os: Linux 6.18.7, NixOS, 26.05 (Yarara), 26.05.20260126.bfc1b8a
- multi-user?: yes
- sandbox: yes
- version: nix-env (Nix) 2.33.1+1
- channels(root): ββ
- nixpkgs: /nix/store/12azrzlywd7jmsg1q9n4dpqqgb33p2wl-source
βx86_64-linuxβ
Resolved URL: git+file:///home/archbishop/nixos-config?dir=archbishop/nixvim
Description: A nixvim configuration with custom plugins
Path: /nix/store/l0xwh0fw59im5fdaxi3q57ckix7988v1-source
Revision: 6420ec6ce40cf4dcdaa050e2d86564f4102174a0-dirty
Last modified: 2025-12-02 22:59:10
Fingerprint: d43283ead1f21156d1d5ae15dc766c5bc677bd1318e2ef4a9da3603e3bd6340e
Inputs:
ββββflake-utils: github:numtide/flake-utils/11707dc2f618dd54ca8739b309ec4fc024de578b?narHash=sha256-l0KFg5HjrsfsO/JpG%2Br7fRrqm12kzFHyUHqHCVpMMbI%3D (2024-11-13 21:27:16
)
β ββββsystems: github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e?narHash=sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768%3D (2023-04-09 08:27:08)
ββββnixpkgs: github:NixOS/nixpkgs/62c8382960464ceb98ea593cb8321a2cf8f9e3e5?narHash=sha256-kKB3bqYJU5nzYeIROI82Ef9VtTbu4uA3YydSk/Bioa8%3D (2026-01-30 16:06:07)
ββββnixvim: github:nix-community/nixvim/31c3b3687dc85e3fbbf5c44728a5ee231608f8a9?narHash=sha256-Qlb19PP0n6s%2Bv1MywVjROV5XwsCvA58XXiXHk0Govb4%3D (2026-02-02 09:38:23)
ββββflake-parts: github:hercules-ci/flake-parts/80daad04eddbbf5a4d883996a73f3f542fa437ac?narHash=sha256-PVvu7OqHBGWN16zSi6tEmPwwHQ4rLPU9Plvs8/1TUBY%3D (2026-01-11 12
:41:02)
β ββββnixpkgs-lib follows input βnixvim/nixpkgsβ
ββββnixpkgs: github:NixOS/nixpkgs/ed142ab1b3a092c4d149245d0c4126a5d7ea00b0?narHash=sha256-dYP3DjiL7oIiiq3H65tGIXXIT1Waiadmv93JS0sS%2B8A%3D (2026-01-20 02:11:35)
ββββsystems: github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e?narHash=sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768%3D (2023-04-09 08:27:08)
warning: Git tree β/home/archbishop/nixos-configβ is dirty
git+file:///home/archbishop/nixos-config?dir=archbishop/nixvim
ββββchecks
β ββββaarch64-darwin
β β ββββdefault omitted (use ββall-systemsβ to show)
β ββββaarch64-linux
β β ββββdefault omitted (use ββall-systemsβ to show)
β ββββx86_64-darwin
β β ββββdefault omitted (use ββall-systemsβ to show)
β ββββx86_64-linux
β ββββdefault: derivation βMy-nixvim-configurationβ
ββββdevShells
β ββββaarch64-darwin
β β ββββdefault omitted (use ββall-systemsβ to show)
β ββββaarch64-linux
β β ββββdefault omitted (use ββall-systemsβ to show)
β ββββx86_64-darwin
β β ββββdefault omitted (use ββall-systemsβ to show)
β ββββx86_64-linux
the nixvim structure looks like the folllowing:
ξ©£ β¦/nixvim ο tree
.
βββ config
β βββ clipboard.nix
β βββ colors
β β βββ aquarium.nix
β β βββ decay.nix
β β βββ everblush.nix
β β βββ everforest.nix
β β βββ gruvbox_mt_hard.nix
β β βββ gruvbox.nix
β β βββ jellybeans.nix
β β βββ kanagawa-waves.nix
β β βββ mountain.nix
β β βββ nord-chime.nix
β β βββ paradise.nix
β β βββ radium.nix
β β βββ tokyonight.nix
β βββ core
β β βββ compe
β β β βββ blink.nix
β β β βββ cmp.nix_bak
β β β βββ copilot-cmp.nix
β β β βββ lspkind.nix
β β β βββ schemastore.nix.bak
β β βββ git
β β β βββ fuzitive.nix
β β β βββ gitlinker.nix
β β β βββ gitsigns.nix
β β β βββ lazygit.nix
β β β βββ worktree.nix
β β βββ lint
β β β βββ lint.nix
β β βββ lsp
β β β βββ conform.nix
β β β βββ fidget.nix
β β β βββ lsp.nix
β β β βββ lspsaga.nix
β β β βββ none-ls.nix
β β β βββ rzls.nix.bak
β β β βββ specific
β β β β βββ clang.nix
β β β β βββ dotnet.nix
β β β β βββ java.nix
β β β β βββ rust.nix
β β β βββ tiny_diagnostic.nix
β β β βββ trouble.nix
β β βββ test
β β β βββ test.nix.bak
β β βββ treesitter
β β βββ treesitter-context.nix
β β βββ treesitter.nix
β β βββ treesitter-textobjects.nix
β βββ default.nix
β βββ highlight.nix
β βββ keys.nix
β βββ plugins
β β βββ snips
β β β βββ luasnip.nix
β β β βββ snippets
β β β βββ csharp.lua
β β βββ statbar
β β β βββ lualine.nix
β β β βββ staline.nix.bak
β β βββ tailwind.nix
β β βββ themes
β β β βββ colorscheme.nix
β β βββ ui
β β β βββ btw.nix
β β β βββ bufferline.nix
β β β βββ noice.nix
β β β βββ nvim-notify.nix
β β β βββ telescope.nix
β β β βββ transparent.nix
β β βββ utils
β β βββ colorizer.nix
β β βββ comment.nix
β β βββ dadbod.nix
β β βββ dev_icons.nix
β β βββ flash.nix
β β βββ fzf.nix
β β βββ grapple.nix
β β βββ grug-far.nix
β β βββ harpoon.nix
β β βββ illuminate.nix
β β βββ indent.nix
β β βββ lz-n.nix
β β βββ markdown-prev.nix
β β βββ mini-nvim
β β β βββ bracket.nix
β β β βββ default.nix
β β β βββ files.nix
β β β βββ pairs.nix
β β β βββ surround.nix
β β βββ nvim-autopairs.nix
β β βββ nvim-autotag.nix
β β βββ nvim_tree.nix
β β βββ oil.nix
β β βββ smears-cursor.nix
β β βββ surround.nix
β β βββ toggleterm.nix
β β βββ ufo.nix
β β βββ undotree.nix
β β βββ whichkey.nix
β βββ result β /nix/store/ms0wqhixsickm1msyv9ljqd6ids4mk20-nixvim
β βββ settings.nix
βββ flake.lock
βββ flake.nix
βββ result β /nix/store/l61k80ggq3abgxja012wvgfhicr6fj9j-nixvim
thank you, if you need the latest nixvim config to test for yourself you can find it here ![]()
nixvim config github