From c6b9cccdfd172cec7a099273549578f25e928177 Mon Sep 17 00:00:00 2001 From: Shane Date: Tue, 22 Dec 2020 04:01:45 +0000 Subject: [PATCH] Allow doomPrivateDir to be a /nix/store path I've been playing around with a custom home-manager module that extends this one that generates `init.el` programmatically. However, I can't use the `doom.d` folder it generates, because `doomPrivateDir` calls `builtins.path` which fails if given a `/nix/store` path. This PR fixes `doomPrivateDir` to only call `builtins.path` if the given `path` is not already a `/nix/store` path. --- modules/home-manager.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/home-manager.nix b/modules/home-manager.nix index 3f70ca3..16f88a9 100644 --- a/modules/home-manager.nix +++ b/modules/home-manager.nix @@ -20,7 +20,7 @@ in The specified directory should contain yoour `init.el`, `config.el` and `packages.el` files. ''; - apply = path: builtins.path { inherit path; }; + apply = path: if lib.isStorePath path then path else builtins.path { inherit path; }; }; extraConfig = mkOption { description = ''