while running sudo nixos-rebuild switch --flake ~/nixos-dotfiles#nixos, this error showed up:
error: Cannot build '/nix/store/81jwsrggfwr35y7ka028qk40871fpx8s-home-manager-path.drv'.
Reason: builder failed with exit code 25.
Output paths:
/nix/store/1gcihvx1jqfnmn7yqrz5mjbnncp4jas4-home-manager-path
Last 6 log lines:
> structuredAttrs is enabled
> pkgs.buildEnv error: two given paths contain a conflicting subpath:
> `/nix/store/497pjm0my76m656ay3x1h8nxrksc4bw7-neovim-0.12.3/bin/nvim' and
> `/nix/store/lzjp315js7rsxb52iswxbs5zlf7yn44g-neovim-0.12.3/bin/nvim'
> hint: this may be caused by two different versions of the same package in buildEnv's `paths` parameter
> hint: `pkgs.nix-diff` can be used to compare derivations
For full logs, run:
nix log /nix/store/81jwsrggfwr35y7ka028qk40871fpx8s-home-manager-path.drv
error: Cannot build '/nix/store/8x6iclli20mkdirfgqrm2qln369hivhm-hm_fontconfigconf.d10hmfonts.conf.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/v5qz940pwi0vhcicabbgrjcaf5lyrwx5-hm_fontconfigconf.d10hmfonts.conf
error: Cannot build '/nix/store/2xvvw2pc9mqyigl0jzyrv29xm9mh5099-home-manager-generation.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/5cml8n3r1nps87ysakfr727hk1a1hjgk-home-manager-generation
error: Cannot build '/nix/store/y3hlcbxj3h205cg1nmazi33rkvwgswl3-user-environment.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/h24cc11789llixb9kaa4gvp2134bnvc6-user-environment
error: Build failed due to failed dependency
error: Build failed due to failed dependency
error: Cannot build '/nix/store/l4vr30aipc6n4858s27j1ip4q0lndlbv-etc.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/i00gsk8cg48cx5mpnwlc9l1yv4l2b6as-etc
error: Cannot build '/nix/store/70mkzv8vzya3pzbkzqkhypj2rjhxajwa-unit-home-manager-snece.service.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/c3sgszkpcwd4gsbhgmskdljjjmp7bal3-unit-home-manager-snece.service
error: Build failed due to failed dependency
error: Cannot build '/nix/store/f8cnlh7wim9rdpdjqhjx05v59xhg0kpk-activate.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/ih59ld3ira5g5y4kc5r8xzyjsldhakix-activate
error: Cannot build '/nix/store/qlr5jx8x0qzjywby7p592sra6qbj382c-nixos-system-nixos-26.05.20260618.e8210c6.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/403yn18k0xl0549c9cs8rvyg7dhf7ln4-nixos-system-nixos-26.05.20260618.e8210c6
error: Build failed due to failed dependency
Command 'nix --extra-experimental-features 'nix-command flakes' build --print-out-paths '/home/snece/nixos-dotfiles#nixosConfigurations."nixos".config.system.build.toplevel' --no-link' returned non-zero exit status 1.
can anyone help, please?
i dont know which files do i have to put here, so ask me for any file (flake, home-manager, config, etc)
update: i found out that the conflicting packages are the home.packages = wth pkgs; in the home.nix file and the home.packages = with pkgs; in the neovim.nix file, which is a module imported through the home.nix file, but what do i do to make them not conflict with eachother?