This commit is contained in:
Tristan Maat 2025-12-05 20:43:10 +01:00 committed by GitHub
commit 84a9426133
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}\"";