1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-04 18:29:45 +01:00
home-manager/modules/misc/pam.nix
2017-09-26 23:40:31 +02:00

22 lines
368 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let
homeCfg = config.home;
in
{
meta.maintainers = [ maintainers.rycee ];
options = {};
config = mkIf (homeCfg.sessionVariableSetter == "pam") {
home.file.".pam_environment".text =
concatStringsSep "\n" (
mapAttrsToList (n: v: "${n} OVERRIDE=${v}") homeCfg.sessionVariables
) + "\n";
};
}