From 76e9c6e14aabba36368bc1c0680c80f018451e43 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Fri, 6 Jun 2025 10:07:34 -0400 Subject: [PATCH] lib/default.nix: remove inefficient second copy (#7221) Using ./. forces Nix to copy the flake to the store a second time. Using bulitins.path like this, forcing the name to be "source", reduces the extraneous copy. --- lib/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/default.nix b/lib/default.nix index b99bd71ef..0c54a7645 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -20,7 +20,14 @@ configuration = { ... }: { - imports = modules ++ [ { programs.home-manager.path = "${../.}"; } ]; + imports = modules ++ [ + { + programs.home-manager.path = builtins.path { + path = ../.; + name = "source"; + }; + } + ]; nixpkgs = { config = lib.mkDefault pkgs.config;