From 848b8b983e36c0cfe3c12cff8389307f14c6185f 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 --- 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 91b75f5b5..6ace2bfda 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"; }; }