Skip to content

fix(nix): use lib.mkDefault for nix.package to avoid NixOS HM conflict#803

Open
agentydragon-agent wants to merge 1 commit intoagentydragon:develfrom
agentydragon-agent:claude/merge-ducktape-claude-hoo-94r2g
Open

fix(nix): use lib.mkDefault for nix.package to avoid NixOS HM conflict#803
agentydragon-agent wants to merge 1 commit intoagentydragon:develfrom
agentydragon-agent:claude/merge-ducktape-claude-hoo-94r2g

Conversation

@agentydragon-agent
Copy link
Copy Markdown
Contributor

Summary

  • Fixes nix-flake-check CI failure caused by home-manager.users.user.nix.package being defined twice
  • home-manager's nixos/common.nix sets nix.package from the system config at normal priority (100)
  • Our nix/home/home.nix also set nix.package = pkgs.nix at normal priority (100), causing a conflict in NixOS configurations using inline home-manager (e.g. wyrm2 with username = "user")
  • Fix: wrap with lib.mkDefault (priority 1000) so the NixOS integration's definition wins

Test plan

  • nix-flake-check CI job passes
  • nix flake check ./nix evaluates successfully (especially nixosConfigurations.wyrm2)

https://claude.ai/code/session_01PKcRGfBN2SLsUNdPQ67z45

home-manager's nixos/common.nix sets nix.package from the system config
at priority 100 (normal). Our home.nix also set it at priority 100,
causing a conflict in NixOS inline home-manager configs (e.g. wyrm2).

Use lib.mkDefault (priority 1000) so the NixOS integration wins.

https://claude.ai/code/session_01PKcRGfBN2SLsUNdPQ67z45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants