SIGN IN SIGN UP

home-manager-auto-upgrade: respect nix.package

The generated auto-upgrade script took its nix from `pkgs.nix` regardless
of `nix.package`, so a configuration that sets an alternative Nix ran the
scheduled upgrade with a different implementation than everything else the
module system generates, and pulled a second nix into the closure.

Resolve it the way modules/services/nix-gc.nix already does, falling back
to pkgs.nix only when nix.package is null.
P
Piotr Lewandowski committed
99c9ec63390f1d8c14d95d9e8b17cc29cfbd4e11
Parent: 9dc641c
Committed by Austin Horstman <khaneliman12@gmail.com> on 8/27/2026, 2:20:43 AM