Updated system + added nixpkgs emacs patch

This commit is contained in:
Emmet 2023-09-08 21:46:32 -05:00
parent 20e30a60f6
commit 87ab124681
3 changed files with 70 additions and 160 deletions

View file

@ -31,8 +31,14 @@
spawnEditor = if (editor == "emacsclient") then "emacsclient -c -a 'emacs'"
else (if (editor == ("vim" || "nvim" || "nano")) then "$TERM -e $EDITOR" else editor);
nixpkgs-patched = (import nixpkgs { inherit system; }).applyPatches {
name = "nixpkgs-patched";
src = nixpkgs;
patches = [ ./patches/emacs-no-version-check.patch ];
};
# configure pkgs
pkgs = import nixpkgs {
pkgs = import nixpkgs-patched {
inherit system;
config = { allowUnfree = true; };
overlays = [ rust-overlay.overlays.default ];