about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--configs/shared/zsh/.zshrc1
-rw-r--r--emacs.d/init.el1
-rw-r--r--emacs.d/wpc/packages/wpc-nix.el12
3 files changed, 14 insertions, 0 deletions
diff --git a/configs/shared/zsh/.zshrc b/configs/shared/zsh/.zshrc
index 49452db76eaa..e5e9f53edb55 100644
--- a/configs/shared/zsh/.zshrc
+++ b/configs/shared/zsh/.zshrc
@@ -2,6 +2,7 @@ export META_DIR="${HOME}/urbint/meta"
 export DOTFILES="${HOME}/dotfiles"
 export ZSH="${HOME}/.oh-my-zsh"
 export PATH="${PATH}:${HOME}/.local/bin"
+export NIX_PKGS="${HOME}/programming/nixpkgs/pkgs"
 
 # Put this here temporarily until we have a better place for it.
 export FPP_EDITOR='emacsclient -n'
diff --git a/emacs.d/init.el b/emacs.d/init.el
index 75cc0fc06ee7..b2fb4cfa3425 100644
--- a/emacs.d/init.el
+++ b/emacs.d/init.el
@@ -25,5 +25,6 @@
 (require 'wpc-docker)
 (require 'wpc-lisp)
 (require 'wpc-haskell)
+(require 'wpc-nix)
 (require 'wpc-clojure)
 (require 'wpc-javascript)
diff --git a/emacs.d/wpc/packages/wpc-nix.el b/emacs.d/wpc/packages/wpc-nix.el
new file mode 100644
index 000000000000..af439c442d63
--- /dev/null
+++ b/emacs.d/wpc/packages/wpc-nix.el
@@ -0,0 +1,12 @@
+;;; wpc-nix.el --- Nix support -*- lexical-binding: t -*-
+;; Author: William Carroll <wpcarro@gmail.com>
+
+;;; Commentary:
+;; Configuration to support working with Nix.
+
+;;; Code:
+(use-package nix-mode
+  :mode "\\.nix\\'")
+
+(provide 'wpc-nix)
+;;; wpc-nix.el ends here