{ config, pkgs, ... }: let emacsOverlaySha256 = "05mzc9a7g3ha7j2wjlbbsnm16yaj1j6nhv24x2jy0iv0r8cgmigc"; in { home-manager.backupFileExtension = "nix-backup"; nixpkgs = { config = { allowUnfree = true; allowBroken = true; allowInsecure = false; allowUnsupportedSystem = true; permittedInsecurePackages = [ "electron-39.8.10" ]; }; overlays = 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/master.tar.gz"; sha256 = emacsOverlaySha256; })) ]; }; }