summaryrefslogblamecommitdiff
path: root/roles/init/templates/pam_environment.j2
blob: 422b98d7bad050f62cc33e927f1041b9a5f9f7d2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                                        


                                                             


                                                                    





















                                                                                     
                                                                                                                     





















                                                                                 
                                                                               



                                                            


                                                                             


                                                                   




                                                   














                                                                                
# This wil be set correctly in systemd service since the service manager
# itself goes through /etc/pam.d/system-login (as systemd-user) and
# takes its environment from pam_env
# HOME doesn’t even exist when arriving here, but the user’s home is
# available via @{HOME}. But pam_systemd still sets XDG_RUNTIME_DIR (and
# only that one in the case of systemd-user)

# Those are already defined in /etc/security/pam_env.conf
XDG_CONFIG_HOME			DEFAULT="@{HOME}/.config"
XDG_CACHE_HOME			DEFAULT="@{HOME}/.cache"
XDG_DATA_HOME			DEFAULT="@{HOME}/.local/share"
XDG_STATE_HOME			DEFAULT="@{HOME}/.local/state"

EDITOR				DEFAULT="vim"
VISUAL				DEFAULT="vim"
PAGER				DEFAULT="less"
BROWSER				DEFAULT="firefox"

# replace GIO with xdg-open, see tools/files/gio_unwrapper.sh
GIO_LAUNCH_DESKTOP		DEFAULT=gio_unwrapper

# Readline
INPUTRC				DEFAULT="${XDG_CONFIG_HOME}/inputrc"

# Ansible
ANSIBLE_CONFIG			DEFAULT="${XDG_CONFIG_HOME}/ansible/ansible.cfg"

# Python
IPYTHONDIR			DEFAULT="${XDG_CONFIG_HOME}/ipython"
JUPYTER_CONFIG_DIR		DEFAULT="${XDG_CONFIG_HOME}/jupyter"
PYTHONSTARTUP			DEFAULT="${XDG_CONFIG_HOME}/python/startup_script.py"

# VIM
VIMINIT				DEFAULT=":source ${XDG_CONFIG_HOME}/vim/vimrc"

# Mplayer
MPLAYER_HOME			DEFAULT="${XDG_CONFIG_HOME}/mplayer"

# X11
XAUTHORITY			DEFAULT="${XDG_RUNTIME_DIR}/Xauthority"

# GPG
GNUPGHOME			DEFAULT="${XDG_CONFIG_HOME}/gnupg"

# SSH
SSH_AGENT_PID			DEFAULT=
SSH_AUTH_SOCK			DEFAULT="${XDG_RUNTIME_DIR}/gnupg/{{ gnupg_runtime_dir_cmd.stdout }}/S.gpg-agent.ssh"

# Less
LESSHISTFILE			DEFAULT="${XDG_STATE_HOME}/less/history"

# Pass
PASSWORD_STORE_DIR		DEFAULT="${XDG_DATA_HOME}/pass"

# Postgresql
PSQLRC				DEFAULT="${XDG_CONFIG_HOME}/psql/psqlrc"
PSQL_HISTORY			DEFAULT="${XDG_STATE_HOME}/psql/psql_history"
PGPASSFILE			DEFAULT="${XDG_CONFIG_HOME}/psql/pgpass"
PGSERVICEFILE			DEFAULT="${XDG_CONFIG_HOME}/psql/pg_service.conf"

# Sqlite
SQLITE_HISTORY			DEFAULT="${XDG_STATE_HOME}/sqlite_history"

# Stack
STACK_ROOT			DEFAULT="${XDG_DATA_HOME}/stack"

# Nodejs
NVM_DIR				DEFAULT="${XDG_DATA_HOME}/nvm"
NPM_CONFIG_USERCONFIG		DEFAULT="${XDG_CONFIG_HOME}/npm/npmrc"
NODE_REPL_HISTORY		DEFAULT="${XDG_STATE_HOME}/nodejs/repl_history"

# TMUX
TMUX_TMPDIR			DEFAULT="${XDG_RUNTIME_DIR}"

# Zeal
DASHT_DOCSETS_DIR		DEFAULT="${XDG_DATA_HOME}/Zeal/Zeal/docsets/"

# Wget
WGETRC				DEFAULT="${XDG_CONFIG_HOME}/wgetrc"

# fcitx
GTK_IM_MODULE			DEFAULT="fcitx"
QT_IM_MODULE			DEFAULT="fcitx"
XMODIFIERS			DEFAULT="@im=fcitx"

# node_modules/pm2/paths.js
PM2_HOME			DEFAULT="${XDG_DATA_HOME}/pm2"
PM2_CONF_FILE			DEFAULT="${XDG_CONFIG_HOME}/pm2/conf.js"
PM2_MODULE_CONF_FILE		DEFAULT="${XDG_CONFIG_HOME}/pm2/module_conf.js"
PM2_LOG_FILE_PATH		DEFAULT="${XDG_STATE_HOME}/pm2/pm2.log"
PM2_PID_FILE_PATH		DEFAULT="${XDG_RUNTIME_DIR}/pm2/pm2.pid"
PM2_RELOAD_LOCKFILE		DEFAULT="${XDG_RUNTIME_DIR}/pm2/reload.lock"
PM2_DEFAULT_PID_PATH		DEFAULT="${XDG_RUNTIME_DIR}/pm2/pids"
PM2_DEFAULT_LOG_PATH		DEFAULT="${XDG_STATE_HOME}/pm2/logs"
PM2_DAEMON_RPC_PORT		DEFAULT="${XDG_RUNTIME_DIR}/pm2/rpc.sock"
PM2_DAEMON_PUB_PORT		DEFAULT="${XDG_RUNTIME_DIR}/pm2/pub.sock"
PM2_INTERACTOR_RPC_PORT		DEFAULT="${XDG_RUNTIME_DIR}/pm2/interactor.sock"
PM2_INTERACTOR_LOG_FILE_PATH	DEFAULT="${XDG_STATE_HOME}/pm2/agent.log"
PM2_INTERACTOR_PID_PATH		DEFAULT="${XDG_RUNTIME_DIR}/pm2/agent.pid"
PM2_INTERACTION_CONF		DEFAULT="${XDG_CONFIG_HOME}/pm2/agent.json5"