Skip to content

Commit 8d53c0b

Browse files
committed
chore: add darwin libs, remove node global env
1 parent d176303 commit 8d53c0b

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

modules/darwin/default.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
inputs,
33
config,
44
pkgs,
5+
lib,
56
...
67
}:
78
{
@@ -37,6 +38,12 @@
3738
};
3839
};
3940

41+
environment.variables = {
42+
LIBRARY_PATH = lib.concatStringsSep ":" [
43+
"${lib.removeSuffix "/bin" config.homebrew.brewPrefix}/lib"
44+
];
45+
};
46+
4047
hm.nix.registry = {
4148
darwin.flake = inputs.darwin;
4249
};

modules/home-manager/default.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@
114114
ouch
115115
oxlint
116116
parallel
117-
pkg-config
118117
prek
119118
prettier
120119
process-compose

modules/home-manager/dotfiles/default.nix

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@ in
2525
target = ".zfunc";
2626
recursive = true;
2727
};
28-
npmrc = {
29-
text = ''
30-
prefix = ${config.home.sessionVariables.NODE_PATH};
31-
'';
32-
target = ".npmrc";
33-
};
3428
};
3529

3630
xdg = {

modules/home-manager/shell.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,17 @@ in
1515
GPG_TTY = "/dev/ttys000";
1616
CLICOLOR = 1;
1717
LSCOLORS = "ExFxBxDxCxegedabagacad";
18-
NODE_PATH = "${homeDir}/.node";
1918
LANG = "en_US.UTF-8";
2019
DEFAULT_USER = "${config.home.username}";
2120
LS_COLORS = "ExFxBxDxCxegedabagacad";
2221
TERM = "xterm-256color";
2322
MISE_ENV_FILE = ".env";
24-
NH_HOST = "${config.home.username}@${pkgs.system}";
23+
NH_HOST = "${config.home.username}@${pkgs.stdenvNoCC.hostPlatform.system}";
2524
};
2625
sessionPath = [
2726
"${homeDir}/.local/bin"
2827
"${homeDir}/.rustup/bin"
2928
"${homeDir}/.cargo/bin"
30-
"${homeDir}/.node/bin"
3129
];
3230
shellAliases = {
3331
neofetch = "fastfetch";

0 commit comments

Comments
 (0)