about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--overrides/default.nix6
-rw-r--r--zsh.nix2
2 files changed, 6 insertions, 2 deletions
diff --git a/overrides/default.nix b/overrides/default.nix
index 0d93fc1a..66ae0f5f 100644
--- a/overrides/default.nix
+++ b/overrides/default.nix
@@ -111,6 +111,12 @@ let
       ];
       patchFlags = "--merge -p1";
     };
+
+    zsh = o: {
+      postInstall = (o.postInstall or "") + ''
+        find "$out" -type f -name zsh-newuser-install -delete
+      '';
+    };
   };
 
   # misc
diff --git a/zsh.nix b/zsh.nix
index ad8be3c7..5dfdcac5 100644
--- a/zsh.nix
+++ b/zsh.nix
@@ -71,8 +71,6 @@
     compinit
 
     autoload -Uz zmv
-
-    zsh-newuser-install() { :; }
   '';
 
   programs.zsh.promptInit = ''