mirror of
https://github.com/nix-community/nix-doom-emacs
synced 2025-08-29 14:33:37 -05:00
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.
This commit is contained in:
@@ -20,7 +20,7 @@ in
|
|||||||
The specified directory should contain yoour `init.el`, `config.el` and
|
The specified directory should contain yoour `init.el`, `config.el` and
|
||||||
`packages.el` files.
|
`packages.el` files.
|
||||||
'';
|
'';
|
||||||
apply = path: builtins.path { inherit path; };
|
apply = path: if lib.isStorePath path then path else builtins.path { inherit path; };
|
||||||
};
|
};
|
||||||
extraConfig = mkOption {
|
extraConfig = mkOption {
|
||||||
description = ''
|
description = ''
|
||||||
|
Reference in New Issue
Block a user