about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--emacs/.emacs.d/wpc/wpc-nix.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/emacs/.emacs.d/wpc/wpc-nix.el b/emacs/.emacs.d/wpc/wpc-nix.el
index 678bef33b4e2..1060645bb56c 100644
--- a/emacs/.emacs.d/wpc/wpc-nix.el
+++ b/emacs/.emacs.d/wpc/wpc-nix.el
@@ -17,7 +17,6 @@
 ;; Library
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
-;;; Code:
 (use-package nix-mode
   :mode "\\.nix\\'")
 
@@ -26,7 +25,11 @@
   "Use nix-env to rebuild wpcarros-emacs."
   (interactive)
   (start-process "nix-build/<briefcase/emacs>" "*nix-build/<briefcase/emacs>*"
-                 "nix-env" "-f" "<briefcase>" "-iA" "emacs")
+                 "nix-env"
+                 "-I" (format "nixpkgs=%s" (f-expand "~/nixpkgs"))
+                 "-I" (format "depot=%s" (f-expand "~/depot"))
+                 "-I" (format "briefcase=%s" (f-expand "~/briefcase"))
+                 "-f" "<briefcase>" "-iA" "emacs")
   (display-buffer "*nix-build/<briefcase/emacs>*"))
 
 (defun nix/home-manager-switch ()