all repos — nixfiles @ 46b488feae34f6f21a17ddc0d8645e49b5d5e9ba

System and user configuration, managed by nix and home-manager

Emacs: Install nix-sandbox

Alan Pearce
commit

46b488feae34f6f21a17ddc0d8645e49b5d5e9ba

parent

238eda758c6b399a1f74a6eba3d32a802acc358a

2 files changed, 17 insertions(+), 0 deletions(-)

jump to
M emacs/.emacs.d/init.orgemacs/.emacs.d/init.org
@@ -417,6 +417,22 @@ (setq exec-path-from-shell-arguments '("-l"))
(exec-path-from-shell-initialize))) #+END_SRC +** NixOS sandboxes + +I'm currently exploring using nix to create sandboxes for +development. This package allows using tools from inside sandboxes, +and some convenience commands for building packages and launching shells. + +#+BEGIN_SRC emacs-lisp +(use-package nix-sandbox + :config (progn + (with-eval-after-load 'flycheck + (setq flycheck-command-wrapper-function + (lambda (command) (apply 'nix-shell-command (nix-current-sandbox) command)) + flycheck-executable-find + (lambda (cmd) (nix-executable-find (nix-current-sandbox) cmd)))))) +#+END_SRC + * Keybindings I think =set-keyboard-coding-system= stops OS X from doing something
M nix/.config/nixpkgs/emacs.nixnix/.config/nixpkgs/emacs.nix
@@ -122,6 +122,7 @@ move-text
multiple-cursors nginx-mode nix-mode + nix-sandbox org-journal page-break-lines paredit