From fa19c183431e43aa652262ee1f8b4cc6adf59ec3 Mon Sep 17 00:00:00 2001 From: Olli Helenius Date: Tue, 5 Mar 2019 18:53:48 +0200 Subject: [PATCH] pam: enclose session variable values in quotes (cherry picked from commit 848b8b983e36c0cfe3c12cff8389307f14c6185f) --- modules/misc/pam.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/misc/pam.nix b/modules/misc/pam.nix index 91b75f5b..6ace2bfd 100644 --- a/modules/misc/pam.nix +++ b/modules/misc/pam.nix @@ -30,7 +30,7 @@ in config = mkIf (vars != {}) { home.file.".pam_environment".text = concatStringsSep "\n" ( - mapAttrsToList (n: v: "${n} OVERRIDE=${toString v}") vars + mapAttrsToList (n: v: "${n} OVERRIDE=\"${toString v}\"") vars ) + "\n"; }; }