diff --git a/emacs/.emacs.d/wpc/wpc-nix.el b/emacs/.emacs.d/wpc/wpc-nix.el index 678bef33b..1060645bb 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/" "*nix-build/*" - "nix-env" "-f" "" "-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" "" "-iA" "emacs") (display-buffer "*nix-build/*")) (defun nix/home-manager-switch ()