diff --git a/modules/darwin/default.nix b/modules/darwin/default.nix new file mode 100644 index 0000000..b2da1a0 --- /dev/null +++ b/modules/darwin/default.nix @@ -0,0 +1,32 @@ +{ config, pkgs, ... }: + +let + emacsOverlaySha256 = "0pqnl05j86pyvrlqh5kk4sximi749xqgiffq47grw7v98nqd2yin"; +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; + })) + ]; + }; +} \ No newline at end of file