home-manager: use nixos-option from pkgs

Fixes #2170
This commit is contained in:
Robert Helgesson 2021-07-10 09:34:33 +02:00
parent 06ee8ec8df
commit d7d7bbbf20
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
1 changed files with 2 additions and 2 deletions

View File

@ -11,8 +11,8 @@ let
pathStr = if path == null then "" else path;
nixos-option =
callPackage (pkgs.path + "/nixos/modules/installer/tools/nixos-option") { };
nixos-option = pkgs.nixos-option or callPackage
(pkgs.path + "/nixos/modules/installer/tools/nixos-option") { };
in runCommand "home-manager" {
preferLocalBuild = true;