all repos — nixfiles @ c5baab42e00a96f1cad8e2dd39aa1d6e5fb6cd17

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

Merge remote-tracking branch 'origin/master'
Alan Pearce alan@alanpearce.eu
Mon, 11 Nov 2019 11:20:43 +0100
commit

c5baab42e00a96f1cad8e2dd39aa1d6e5fb6cd17

parent

12e113b5d793120df131473e8dd96e385e6be2e6

3 files changed, 28 insertions(+), 10 deletions(-)

jump to
M system/settings/programs/shell.nixsystem/settings/programs/shell.nix
@@ -3,7 +3,6 @@ { programs.zsh = {
     enable = true;
     promptInit = "";
-    enableGlobalCompInit = false;
   };
   programs.bash.enableCompletion = true;
 }
M user/emacs/.emacs.d/init.eluser/emacs/.emacs.d/init.el
@@ -17,6 +17,22 @@ (require 'use-package)   (setq use-package-expand-minimally t))
 (setq use-package-always-demand (daemonp))
 
+(defvar ap/path-configured nil)
+(when (and (eq system-type 'darwin)
+           (not ap/path-configured))
+  (setq exec-path
+        (delete-dups
+         (append
+          (parse-colon-path
+           (elt (split-string-and-unquote
+                 (with-output-to-string
+                   (with-current-buffer standard-output
+                     (call-process "/usr/libexec/path_helper" nil t nil "-s")))
+                 "[=;]")
+                1))
+          exec-path))
+        ap/path-configured t))
+
 ;;; Customize
 
 (setq custom-file "~/.emacs.d/custom.el")
M user/settings/nixos.nixuser/settings/nixos.nix
@@ -6,14 +6,17 @@ ./nix.nix     ./nixpkgs.nix
   ];
 
-  programs.zsh.shellAliases = {
-    nor = "nixos-rebuild";
-    snor = "sudo nixos-rebuild";
-    nors = "nixos-rebuild switch";
-    snors = "sudo nixos-rebuild switch";
-    norb = "nixos-rebuild boot";
-    snorb = "sudo nixos-rebuild boot";
-    norr = "nixos-rebuild switch --rollback";
-    snorr = "sudo nixos-rebuild switch --rollback";
+  programs.zsh = {
+    enableGlobalCompInit = false;
+    shellAliases = {
+      nor = "nixos-rebuild";
+      snor = "sudo nixos-rebuild";
+      nors = "nixos-rebuild switch";
+      snors = "sudo nixos-rebuild switch";
+      norb = "nixos-rebuild boot";
+      snorb = "sudo nixos-rebuild boot";
+      norr = "nixos-rebuild switch --rollback";
+      snorr = "sudo nixos-rebuild switch --rollback";
+    };
   };
 }