diff --git a/modules/misc/news.nix b/modules/misc/news.nix
index 6a1807f1d..fa2c18393 100644
--- a/modules/misc/news.nix
+++ b/modules/misc/news.nix
@@ -1789,6 +1789,23 @@ in
A new module is available: 'programs.octant'.
'';
}
+
+ {
+ time = "2021-01-01T08:51:11+00:00";
+ condition = config.pam.sessionVariables != {};
+ message = ''
+ The option 'pam.sessionVariables' will be deprecated in the future.
+ This is due to PAM 1.5.0 deprecating reading of the user environment.
+ The deprecation will not take place immediately but you may wish to
+ consider alternatives to PAM environment variables.
+
+ See
+
+ https://github.com/nix-community/home-manager/issues/1691
+
+ for discussion.
+ '';
+ }
];
};
}
diff --git a/modules/misc/pam.nix b/modules/misc/pam.nix
index f54f4b950..c94efb506 100644
--- a/modules/misc/pam.nix
+++ b/modules/misc/pam.nix
@@ -21,6 +21,9 @@ in {
pam_env.conf
5
.
+
+ Note, this option will become deprecated in the future and its use is
+ therefore discouraged.
'';
};
};