Files
notfiles/home/modules/pixi.nix
T

15 lines
362 B
Nix

{ pkgs, ... }:
{
home.sessionPath = [ "$HOME/.pixi/bin" ];
home.activation.pixi = {
after = [ "writeBoundary" ];
before = [];
data = ''
export PATH="${pkgs.curl}/bin:${pkgs.coreutils}/bin:$PATH"
if ! command -v pixi &> /dev/null; then
curl -fsSL https://pixi.sh/install.sh | PIXI_NO_PATH_UPDATE=1 bash
fi
'';
};
}