From c99cf97d63018533afe4aae6a0b3b41553a409fb Mon Sep 17 00:00:00 2001 From: Jeremy Isaac Dormitzer Date: Wed, 20 Mar 2024 12:01:43 -0400 Subject: [PATCH] Set up nix Add nix-mode Set up nix Require nix --- emacs/.emacs.d/config/init-nix.el | 4 ++++ emacs/.emacs.d/init.el | 1 + zsh/.zshenv | 6 ++++++ 3 files changed, 11 insertions(+) create mode 100644 emacs/.emacs.d/config/init-nix.el diff --git a/emacs/.emacs.d/config/init-nix.el b/emacs/.emacs.d/config/init-nix.el new file mode 100644 index 0000000..95f849c --- /dev/null +++ b/emacs/.emacs.d/config/init-nix.el @@ -0,0 +1,4 @@ +;; -*- lexical-binding: t; -*- +(use-package nix-mode) + +(provide 'init-nix) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index b0606ea..fa3d4d6 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -106,6 +106,7 @@ (require 'init-groovy) (require 'init-terraform) (require 'init-docker) +(require 'init-nix) (require 'init-lua) (require 'init-run-command) (require 'init-aws) diff --git a/zsh/.zshenv b/zsh/.zshenv index 6a13aa0..c141694 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -35,3 +35,9 @@ if [ -d "/opt/homebrew/Caskroom/google-cloud-sdk" ]; then fi [[ -e "$HOME/.cargo/env" ]] && . "$HOME/.cargo/env" + +# Nix +if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then + . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' +fi +# End Nix