Skip to content

Build your personal knowledge base with Trilium Notes

refactor(flake): deduplicate environment variables

Elian Doranfc4ec9a04577
diff --git a/flake.nix b/flake.nix
index 8da78d3997..b89040c95e 100644
--- a/flake.nix
+++ b/flake.nix
@@ -23,9 +23,16 @@
];
buildPhase = ''
+ # Disable NX interaction
+ export NX_TUI=false
+ export NX_DAEMON=false
+
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) node_modules/.pnpm/[email protected]/node_modules/sass-embedded-linux-x64/dart-sass/src/dart
- NX_TUI=false NX_DAEMON=false pnpm nx run desktop:build --outputStyle stream --verbose
- NX_TUI=false NX_DAEMON=false npm_config_nodedir=${electron.headers} pnpm nx run desktop:rebuild-deps --outputStyle stream --verbose
+ pnpm nx run desktop:build --outputStyle stream --verbose
+
+ # Rebuild dependencies
+ export npm_config_nodedir=${electron.headers}
+ pnpm nx run desktop:rebuild-deps --outputStyle stream --verbose
'';
installPhase = ''