Skip to content

[BUG] <BUG> Nix flake stops working on nightly #4213

@rosaisapuppy

Description

@rosaisapuppy

Plugin

No response

Nixpkgs Release

unstable

Home Manager Release

None

I have read the FAQ

  • I have read the FAQ and my bug is not listed there.

Description

unstable cannot build anymore, this is my flake import

	nixvim = import (builtins.fetchGit {
		url = "https://github.com/nix-community/nixvim";
	});

this is the error message upon rebuilding nix:

unpacking 1 channels...
error:
       … while evaluating the attribute 'config'
         at /nix/store/6lbxsy2gpv5i0c1nsj2k4hkhfk8cwllw-nixos/nixos/lib/modules.nix:403:9:
          402|         options = checked options;
          403|         config = checked (removeAttrs config [ "_module" ]);
             |         ^
          404|         _module = checked (config._module);

       … while calling the 'seq' builtin
         at /nix/store/6lbxsy2gpv5i0c1nsj2k4hkhfk8cwllw-nixos/nixos/lib/modules.nix:403:18:
          402|         options = checked options;
          403|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          404|         _module = checked (config._module);

       … while evaluating the option `flake.packages':

       … while evaluating definitions from `/nix/store/j5qcw5x2dm0jlffwwymp6yav62l3pdqm-source/modules/transposition.nix':

       … while evaluating the option `allSystems':

       … while evaluating definitions from `/nix/store/j5qcw5x2dm0jlffwwymp6yav62l3pdqm-source/modules/perSystem.nix':

       … while evaluating the option `systems':

       … while evaluating definitions from `/nix/store/fcicywk1ibi674v4zwpr9m292i6yadmw-source/flake.nix':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: path '/nix/store/yj1wxm9hh8610iyzqnz75kvs6xl8j3my-source/flake.nix' does not exist
Command 'nix-build '<nixpkgs/nixos>' --attr config.system.build.nixos-rebuild --no-out-link' returned non-zero exit status 1.

this disappears when using 25.11, but i would rather use unstable, and it seems to be broken right now

Minimal, Reproducible Example (MRE)

programs.nixvim = {
		enable = true;

		colorschemes.catppuccin = {
			enable = true;
			settings = {
				flavour = "macchiato";
				integrations = {
					cmp = true;
				};
			};
		};

		plugins = {
			plenary.enable = true;
			telescope.enable = true;
			doorboy.enable = true;
			web-devicons.enable = true;
			lsp = {
				enable = true;
				servers = {
					rust_analyzer = {
						enable = true;
						installCargo = false;
						installRustc = false;
					};

					tinymist.enable = true;
				};
				inlineHints = true;
				luaConfig.content = ''  
					vim.diagnostic.config({  
						virtual_text = { prefix = "●" },  -- inline errors/warnings  
						signs = true,  
						underline = true,  
						update_in_insert = false,  
							severity_sort = true,  
					})  
				'';  
			};
			cmp = {
				enable = true;
				autoEnableSources = true;
				settings.sources = [
					{name = "nvim_lsp";}
					{name = "buffer";}
					{name = "path";}
				];
				settings.mapping = {
					"<C-Space>" = "cmp.mapping.complete()";
					"<C-d>" = "cmp.mapping.scroll_docs(-4)";
					"<C-e>" = "cmp.mapping.close()";
					"<C-f>" = "cmp.mapping.scroll_docs(4)";
					"<CR>" = "cmp.mapping.confirm({ select = true })";
					"<S-Tab>" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})";
					"<Tab>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})";
				};
			};
		};

		opts = {
			number = true;
			wrap = false;
			relativenumber = true;

			shiftwidth = 2;
			tabstop = 2;
			signcolumn = "yes";
			updatetime = 300;
			hlsearch = false;
		};

		autoCmd = [
		{
			command = "lua vim.lsp.buf.format()";
			event = [
				"BufWritePre"
			];
			pattern = ["*.rs"];
		}
		];

		globals = {
			netrw_banner = 0;
			netrw_preview = 1;
			netrw_bufsettings = "noma nomod nu nobl nowrap ro nornu";
		};

		extraConfigLuaPre = "
			function typst_watch()
				vim.cmd(\"sp\")
				vim.cmd(\"resize 10\")
				vim.cmd(\"terminal typst watch \" .. vim.fn.expand(\"%:p\"))
				vim.cmd(\"wincmd k\") -- Move cursor back to the upper pane
				vim.cmd(\"setlocal winfixheight\")
				return true
			end
		";

		clipboard = {
			register = "unnamedplus";

			providers = {
				wl-copy.enable = pkgs.stdenv.hostPlatform.isLinux;
			};
		};

		keymaps = [
			{
				action = ":Ex<cr>";
				key = "<C-e>";
				mode = "n";
			}
			{
				action = ":Telescope live_grep<cr>";
				key = "<C-t>";
				mode = "n";
			}
			{
				action = ":make run<cr>";
				key = "<C-b>";
				mode = "n";
			}
			{
				action = ":terminal<cr>";
				key = "<C-h>";
				mode = "n";
			}
			{
				action = ":lua typst_watch()<cr>";
				key = "<C-n>";
				mode = "n";
			}
			{
				action = ":lua print(\"Running: zathura --fork \" .. vim.fn.expand(\"%:p:r\") .. \".pdf\") os.execute(\"zathura --fork \\\"\" .. vim.fn.expand(\"%:p:r\") .. \".pdf\\\" &\")<CR>";
				key = "<C-o>";
				mode = "n";
			}
		];
	};

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions