Files
nixos-config_to_rule_them_all/modules/shared/default.nix
2025-09-02 12:46:21 +02:00

30 lines
867 B
Nix

{ config, pkgs, ... }:
let
emacsOverlaySha256 = "11p1c1l04zrn8dd5w8zyzlv172z05dwi9avbckav4d5fk043m754";
in
{
home-manager.backupFileExtension = "nix-backup";
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/dustinlyons/emacs-overlay/archive/refs/heads/master.tar.gz";
sha256 = emacsOverlaySha256;
}))];
};
}