about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--packages.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages.nix b/packages.nix
index 4cbe8ba60f39..db803db9a6f4 100644
--- a/packages.nix
+++ b/packages.nix
@@ -13,6 +13,12 @@ in {
     config.allowUnfree = true;
     config.packageOverrides = oldPkgs: oldPkgs // {
       wallpapers = import ./pkgs/wallpapers.nix;
+
+      # Remove nix-mode from the Nix package as a workaround for
+      # https://github.com/NixOS/nixpkgs/issues/36372
+      nix = oldPkgs.nix.overrideAttrs (oldAttrs: rec {
+        postInstall = "rm -rf $out/share/emacs";
+      });
     };
   };