best practices: get rid of with pkgs;
This commit is contained in:
@@ -11,10 +11,10 @@
|
||||
"npm/npmrc".source = ../../dotfiles/npm/npmrc;
|
||||
"configstore/update-notifier-npm-check.json".source = ../../dotfiles/npm/update-notifier-npm-check.json;
|
||||
};
|
||||
users.users.jawz.packages = with pkgs; [
|
||||
nodejs
|
||||
nodePackages.pnpm
|
||||
];
|
||||
users.users.jawz.packages = builtins.attrValues {
|
||||
inherit (pkgs) nodejs;
|
||||
inherit (pkgs.nodePackages) pnpm;
|
||||
};
|
||||
environment.variables = {
|
||||
NPM_CONFIG_USERCONFIG = "\${XDG_CONFIG_HOME}/npm/npmrc";
|
||||
PNPM_HOME = "\${XDG_DATA_HOME}/pnpm";
|
||||
|
||||
Reference in New Issue
Block a user