{ config, pkgs, emacs-overlay, ... }: { 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))) ++ [ emacs-overlay.overlays.default ]; }; }