From cd613ef38f432b41bea4a05860da3faab8fac49a Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Fri, 21 Nov 2025 14:21:10 -0700 Subject: [PATCH] fix: don't copy nixpkgs to the store needlessly if the value of nixpkgs is a path, it will be copied to the store by nix's implicit interpolation. Coercing it to a string beforehand should resolve this. --- nixos-modules/host/options.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos-modules/host/options.nix b/nixos-modules/host/options.nix index 5ac9d2ab..a987eb63 100644 --- a/nixos-modules/host/options.nix +++ b/nixos-modules/host/options.nix @@ -38,7 +38,7 @@ default = null; type = nullOr (lib.mkOptionType { name = "Toplevel NixOS config"; - merge = loc: defs: (import "${config.nixpkgs}/nixos/lib/eval-config.nix" { + merge = loc: defs: (import "${toString config.nixpkgs}/nixos/lib/eval-config.nix" { modules = let extraConfig = ({ lib, ... }: {