From 95e3151508ba45f179e6822f7aa7a1dedb31a0a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Tue, 3 Dec 2024 23:13:03 -0500 Subject: [PATCH] Fight like hell for a local bin --- configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configuration.nix b/configuration.nix index 1d4cd03..800d19b 100644 --- a/configuration.nix +++ b/configuration.nix @@ -89,6 +89,11 @@ # Add ~/.local/bin/ to $PATH environment.localBinInPath = true; + environment.homeBinInPath = true; + # Only this works, from https://github.com/NixOS/nixpkgs/issues/157383#issuecomment-1186081648 + environment.shellInit = '' + export PATH="$PATH:$HOME/.local/bin" + ''; # Needed for Slack but probably helps other stuff too. # See https://wiki.nixos.org/wiki/Slack