about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
Diffstat (limited to 'users')
-rw-r--r--users/tazjin/emacs/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/users/tazjin/emacs/default.nix b/users/tazjin/emacs/default.nix
index 4babc106dd48..609b98ba25eb 100644
--- a/users/tazjin/emacs/default.nix
+++ b/users/tazjin/emacs/default.nix
@@ -9,8 +9,9 @@
 # render images correctly.
 { lib, pkgs, ... }:
 
+pkgs.makeOverridable({ emacs ? pkgs.emacs27 }:
 let
-  emacsWithPackages = (pkgs.emacsPackagesGen pkgs.emacs27).emacsWithPackages;
+  emacsWithPackages = (pkgs.emacsPackagesGen emacs).emacsWithPackages;
 
   # $PATH for binaries that need to be available to Emacs
   emacsBinPath = lib.makeBinPath [ pkgs.emacsPackages.telega ];
@@ -141,3 +142,4 @@ in lib.fix(self: l: f: pkgs.writeShellScriptBin "tazjins-emacs" ''
         --eval "(require 'init)" $@
     '';
   }) null identity
+) {}