Files
MacNix-config/modules/darwin/default.nix
T
2026-09-13 09:30:13 +02:00

32 lines
881 B
Nix

{ config, pkgs, ... }:
let
emacsOverlaySha256 = "09wf4ww2irx9lxq6symh5cjai1xjgf4jxikr24z22r2i0cjg5f9g";
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;
}))
];
};
}