From d8896a66c8e3e19dd03e6b6177648a62dfeb6158 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 5 May 2023 09:05:48 +0000 Subject: [PATCH] hosts: home: cloudtop: systemd session variable --- hosts/homes/ambroisie@ambroisie/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/homes/ambroisie@ambroisie/default.nix b/hosts/homes/ambroisie@ambroisie/default.nix index acc5a6f..5a561f7 100644 --- a/hosts/homes/ambroisie@ambroisie/default.nix +++ b/hosts/homes/ambroisie@ambroisie/default.nix @@ -4,8 +4,12 @@ # Google specific configuration home.homeDirectory = "/usr/local/google/home/ambroisie"; + # Some tooling (e.g: SSH) need to use this library home.sessionVariables = { - # Some tooling (e.g: SSH) need to use this library + LD_PRELOAD = "/lib/x86_64-linux-gnu/libnss_cache.so.2\${LD_PRELOAD:+:}$LD_PRELOAD"; + }; + + systemd.user.sessionVariables = { LD_PRELOAD = "/lib/x86_64-linux-gnu/libnss_cache.so.2\${LD_PRELOAD:+:}$LD_PRELOAD"; }; }