From 0a9020612340a551fc516ee28a2010d13d9cfab7 Mon Sep 17 00:00:00 2001 From: pompydev Date: Thu, 8 May 2025 14:10:30 +0900 Subject: [PATCH] fix envvar using home path --- modules/home-manager/shell.nix | 2 +- modules/nixos/steam.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/home-manager/shell.nix b/modules/home-manager/shell.nix index ea3ce1c..04ce477 100644 --- a/modules/home-manager/shell.nix +++ b/modules/home-manager/shell.nix @@ -13,7 +13,7 @@ }; sessionVariables = { # https://nodejs.org/docs/latest/api/cli.html#node_compile_cachedir - NODE_COMPILE_CACHE = "~/.node-compile-cache"; + NODE_COMPILE_CACHE = "$HOME/.node-compile-cache"; }; }; diff --git a/modules/nixos/steam.nix b/modules/nixos/steam.nix index 959ad3d..746f8d1 100644 --- a/modules/nixos/steam.nix +++ b/modules/nixos/steam.nix @@ -11,6 +11,6 @@ ]; environment.sessionVariables = { - STEAM_EXTRA_COMPAT_TOOLS_PATHS = "~/.steam/root/compatibilitytools.d"; + STEAM_EXTRA_COMPAT_TOOLS_PATHS = "$HOME/.steam/root/compatibilitytools.d"; }; }