mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-04 08:01:02 +01:00
pam: add module
Also make it possible to set session variables using PAM rather than Bash.
This commit is contained in:
parent
f35b9a9970
commit
5fbbbd1ea4
5 changed files with 47 additions and 4 deletions
|
|
@ -150,7 +150,24 @@ in
|
|||
default = {};
|
||||
type = types.attrs;
|
||||
example = { EDITOR = "emacs"; GS_OPTIONS = "-sPAPERSIZE=a4"; };
|
||||
description = "Environment variables to always set at login.";
|
||||
description = ''
|
||||
Environment variables to always set at login.
|
||||
'';
|
||||
};
|
||||
|
||||
home.sessionVariableSetter = mkOption {
|
||||
default = "pam";
|
||||
type = types.enum [ "pam" "bash" ];
|
||||
example = "bash";
|
||||
description = ''
|
||||
Identifies the module that should set the session variables.
|
||||
</para><para>
|
||||
If "bash" is set then <varname>config.bash.enable</varname>
|
||||
must also be enabled.
|
||||
</para><para>
|
||||
If "pam" is set then PAM must be used to set the system
|
||||
environment.
|
||||
'';
|
||||
};
|
||||
|
||||
home.packages = mkOption {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue