From 57481b7a1c1e8c7c835009e1c7ad89d2f7b3d898 Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Sat, 5 Oct 2019 09:43:47 -0400 Subject: nixos/system-environment: use pam syntax for home variable --- nixos/modules/config/system-environment.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'nixos/modules/config/system-environment.nix') diff --git a/nixos/modules/config/system-environment.nix b/nixos/modules/config/system-environment.nix index 4b663ebf85a4..361c3cfc553d 100644 --- a/nixos/modules/config/system-environment.nix +++ b/nixos/modules/config/system-environment.nix @@ -78,9 +78,7 @@ in # We're trying to use the same syntax for PAM variables and env variables. # That means we need to map the env variables that people might use to their # equivalent PAM variable. - # Note: PAM_USER is a PAM_ITEM, HOME is an environment variable, they have - # different syntax. - replaceEnvVars = replaceStrings ["$HOME" "$USER"] ["\${HOME}" "@{PAM_USER}"]; + replaceEnvVars = replaceStrings ["$HOME" "$USER"] ["@{HOME}" "@{PAM_USER}"]; pamVariable = n: v: ''${n} DEFAULT="${concatStringsSep ":" (map replaceEnvVars (toList v))}"''; -- cgit 1.4.1