2017-01-16 23:54:45 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
homeCfg = config.home;
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
2017-09-26 23:40:31 +02:00
|
|
|
meta.maintainers = [ maintainers.rycee ];
|
|
|
|
|
2017-01-16 23:54:45 +01:00
|
|
|
options = {};
|
|
|
|
|
|
|
|
config = mkIf (homeCfg.sessionVariableSetter == "pam") {
|
|
|
|
home.file.".pam_environment".text =
|
|
|
|
concatStringsSep "\n" (
|
|
|
|
mapAttrsToList (n: v: "${n} OVERRIDE=${v}") homeCfg.sessionVariables
|
|
|
|
) + "\n";
|
|
|
|
};
|
|
|
|
}
|