{ config, pkgs, ... }: let emacsOverlaySha256 = "0rvpskk1z996arcj48ch4g08lvid6r856m0x5376y7lfjxlsawga"; in { nixpkgs = { config = { allowUnfree = true; allowBroken = true; allowInsecure = false; allowUnsupportedSystem = true; }; overlays = # Apply each overlay found in the /overlays directory let path = ../../overlays; in with builtins; map (n: import (path + ("/" + n))) (filter (n: match ".*\\.nix" n != null || pathExists (path + ("/" + n + "/default.nix"))) (attrNames (readDir path))) ++ [(import (builtins.fetchTarball { url = "https://github.com/nix-community/emacs-overlay/archive/refs/heads/master.tar.gz"; sha256 = emacsOverlaySha256; }))]; }; }