fix: resolve eval warnings and npm prefix

This commit is contained in:
m3tam3re
2026-07-07 19:39:43 +02:00
parent 93cecb1a53
commit 10876be5e6
4 changed files with 38 additions and 31 deletions
+4 -1
View File
@@ -11,7 +11,9 @@
pkgs,
lib,
...
}: {
}: let
npmGlobalPrefix = "${config.home.homeDirectory}/.npm-global";
in {
# ── Clipboard ──
services.cliphist = {
enable = true;
@@ -27,6 +29,7 @@
home.homeDirectory = lib.mkDefault "/home/${config.home.username}";
home.file.".npmrc".text = ''
prefix=${npmGlobalPrefix}
@m3ta:registry=https://code.m3ta.dev/api/packages/m3tam3re/npm/
//code.m3ta.dev/api/packages/m3tam3re/npm/:_authToken=''${GITEA_TOKEN}
'';