mirror of
https://github.com/nix-community/emacs-overlay.git
synced 2025-12-06 02:40:25 -08:00
Merge 5de16266f0 into d1e8a6a203
This commit is contained in:
commit
84a9426133
1 changed files with 2 additions and 0 deletions
|
|
@ -40,6 +40,8 @@ let
|
|||
else if type == "string" then config
|
||||
# - A config path { config = ./config.el; }
|
||||
else if type == "path" then builtins.readFile config
|
||||
# - A list of paths { config = [ ./config.el ./custom.el ] }
|
||||
else if type == "list" then lib.concatStringsSep "\n" (map builtins.readFile config)
|
||||
# - A derivation { config = pkgs.writeText "config.el" "(use-package foo)"; }
|
||||
else if lib.isDerivation config then builtins.readFile "${config}"
|
||||
else throw "Unsupported type for config: \"${type}\"";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue