Skip to content

Commit

Permalink
fix LD_LIBRARY_PATH on nixos for python packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Nov 3, 2024
1 parent bb80606 commit 989fbb6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 11 deletions.
7 changes: 7 additions & 0 deletions configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,13 @@
'';
};

# https://github.com/mcdonc/.nixconfig/blob/e7885ad18b7980f221e59a21c91b8eb02795b541/videos/pydev/script.rst
programs.nix-ld.enable = true;
programs.nix-ld.libraries = with pkgs; [
stdenv.cc.cc.lib
zlib # numpy
];

programs.neovim = {
viAlias = true;
vimAlias = true;
Expand Down
1 change: 1 addition & 0 deletions home-manager/fish.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
set fish_greeting # Disable greeting
set -x CUDA_PATH ${pkgs.cudatoolkit}
set -gx GPG_TTY (tty)
set -gx LD_LIBRARY_PATH $NIX_LD_LIBRARY_PATH
'';
shellAliases = {
vim = "nvim";
Expand Down
26 changes: 15 additions & 11 deletions home-manager/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ in
{
programs = {
neovim = import ./neovim.nix { inherit pkgs; };
# firefox = import ./firefox.nix { inherit pkgs; };
firefox = import ./firefox.nix { inherit pkgs; };
fish = import ./fish.nix { inherit pkgs; };
vscode = import ./vscode.nix { inherit pkgs; };
k9s.enable = true;
Expand Down Expand Up @@ -57,16 +57,16 @@ in
];
dictionaries = [ pkgs.hunspellDictsChromium.en_US ];
};
#kitty = {
# enable = true;
# theme = "Birds Of Paradise";
# keybindings = {
# "ctrl+alt+enter" = "launch --cwd=current";
# };
# extraConfig = ''
# background_opacity 0.9
# '';
#};
kitty = {
enable = true;
theme = "Birds Of Paradise";
keybindings = {
"ctrl+alt+enter" = "launch --cwd=current";
};
extraConfig = ''
background_opacity 0.9
'';
};
};
home = {
username = username;
Expand All @@ -81,8 +81,12 @@ in
htop
kubectl
unzip
mlocate
dig
libargon2
pinentry-all
hcloud
ffmpeg_7
jq
devbox
file
Expand Down

0 comments on commit 989fbb6

Please sign in to comment.