error: The option ‘programs.nixvim’ does not exist. In …nixvim.nix
or error: cached failure of attribute ‘homeConfigurations.mee.activationPackage’
Is there any way to fix this, so that the configuration is in similar fashion as the rest of the configuration? I managed to run it as a standalone flake and as home module with nixvim import in home.nix. Just looking for simplifications to my overall configuration.
Also, please don’t override the pkgs in _module.args, that turns off all the NixOS/home-manager module integration for that and will be very confusing for anyone helping you.
I suspect that a lot of the things you set in Variables could be removed entirely with some use of the NixOS module system, (e.g. config.networking.hostName), ultimately resulting in better UX, but I’m just pointing out the actual potential footgun rather than giving you a full code review.
Could you please share the full errors as nix outputs them (no need to add the --trace, just everything from your command down to the end)?
Nix will cache your builds, and if you have a build that failed, it will tell you that it has already failed before and it doesn’t need to rebuild them.
Annoyingly this also makes it hard to recover the error message (because for some reason that isn’t stored, there are some complaints about this), but just adding a single newline somewhere in your code will let you run the build again.
Tnx, I modify config to not mess with nixpkgs options.
error:
… while evaluating a branch condition
at /nix/store/m9s94alic7s2r6v47p7lwfj58ibc076a-source/lib/lists.nix:57:9:
56| fold' = n:
57| if n == len
| ^
58| then nul
… while calling the 'length' builtin
at /nix/store/m9s94alic7s2r6v47p7lwfj58ibc076a-source/lib/lists.nix:55:13:
54| let
55| len = length list;
| ^
56| fold' = n:
(stack trace truncated; use '--show-trace' to show the full trace)
error: The option `environment' does not exist. Definition values:
- In `/nix/store/k897af00nzlz4ylxr5vakzpcvh6m3rnn-source/flake.nix#nixosModules.nixvim':
{
_type = "if";
condition = true;
content = {
systemPackages = [
...