From 4ea08b3976188eb01a74548d68b227a7794b4caa Mon Sep 17 00:00:00 2001 From: Simon Parri Date: Fri, 9 May 2025 17:54:45 -0500 Subject: Add current configuration --- modules/overlays/emacs.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 modules/overlays/emacs.nix (limited to 'modules/overlays/emacs.nix') diff --git a/modules/overlays/emacs.nix b/modules/overlays/emacs.nix new file mode 100644 index 0000000..7ed9658 --- /dev/null +++ b/modules/overlays/emacs.nix @@ -0,0 +1,25 @@ +{ lib, config, ... }: + +{ + options = { + this.overlays.emacs.enable = lib.mkEnableOption "custom-built Emacs overlay"; + }; + + config = lib.mkIf config.this.overlays.emacs.enable { + nixpkgs.overlays = [ + (final: prev: { + emacs = (prev.emacs.override { + withNativeCompilation = false; + withXwidgets = false; + withX = true; + withGTK3 = false; + withAthena = false; + }).overrideAttrs (attrs: with builtins; with attrs; { + configureFlags = filter (f: !elem f + ["--with-x-toolkit=lucid" "--with-toolkit-scroll-bars"]) + configureFlags ++ ["--with-x-toolkit=no" "--without-toolkit-scroll-bars"]; + }); + }) + ]; + }; +} -- cgit v1.2.3