]> git.immae.eu Git - perso/Immae/Config/Ansible.git/blob - roles/init/templates/pam_environment.j2
4327eeb6b2ca65855c353d1a77fac56026b63b0a
[perso/Immae/Config/Ansible.git] / roles / init / templates / pam_environment.j2
1 # This wil be set correctly in systemd service since the service manager
2 # itself goes through /etc/pam.d/system-login (as systemd-user) and
3 # takes its environment from pam_env
4 # HOME doesn’t even exist when arriving here, but the user’s home is
5 # available via @{HOME}. But pam_systemd still sets XDG_RUNTIME_DIR (and
6 # only that one in the case of systemd-user)
7
8 # Those are already defined in /etc/security/pam_env.conf
9 XDG_CONFIG_HOME DEFAULT="@{HOME}/.config"
10 XDG_CACHE_HOME DEFAULT="@{HOME}/.cache"
11 XDG_DATA_HOME DEFAULT="@{HOME}/.local/share"
12 XDG_STATE_HOME DEFAULT="@{HOME}/.local/state"
13
14 EDITOR DEFAULT="vim"
15 VISUAL DEFAULT="vim"
16 PAGER DEFAULT="less"
17 BROWSER DEFAULT="firefox"
18
19 # Ansible
20 ANSIBLE_CONFIG DEFAULT="${XDG_CONFIG_HOME}/ansible/ansible.cfg"
21
22 # Python
23 IPYTHONDIR DEFAULT="${XDG_CONFIG_HOME}/ipython"
24 JUPYTER_CONFIG_DIR DEFAULT="${XDG_CONFIG_HOME}/jupyter"
25 PYTHONSTARTUP DEFAULT="${XDG_CONFIG_HOME}/python/startup_script.py"
26
27 # VIM
28 VIMINIT DEFAULT=":source ${XDG_CONFIG_HOME}/vim/vimrc"
29
30 # Mplayer
31 MPLAYER_HOME DEFAULT="${XDG_CONFIG_HOME}/mplayer"
32
33 # X11
34 XAUTHORITY DEFAULT="${XDG_RUNTIME_DIR}/Xauthority"
35
36 # GPG
37 GNUPGHOME DEFAULT="${XDG_CONFIG_HOME}/gnupg"
38
39 # SSH
40 SSH_AGENT_PID DEFAULT=
41 SSH_AUTH_SOCK DEFAULT="${XDG_RUNTIME_DIR}/gnupg/{{ gnupg_runtime_dir_cmd.get('stdout', debug_gnupg_runtime_dir) }}/S.gpg-agent.ssh"
42
43 # Less
44 LESSHISTFILE DEFAULT="${XDG_STATE_HOME}/less/history"
45
46 # Pass
47 PASSWORD_STORE_DIR DEFAULT="${XDG_DATA_HOME}/pass"
48
49 # Postgresql
50 PSQLRC DEFAULT="${XDG_CONFIG_HOME}/psql/psqlrc"
51 PSQL_HISTORY DEFAULT="${XDG_STATE_HOME}/psql/psql_history"
52 PGPASSFILE DEFAULT="${XDG_CONFIG_HOME}/psql/pgpass"
53 PGSERVICEFILE DEFAULT="${XDG_CONFIG_HOME}/psql/pg_service.conf"
54
55 # Sqlite
56 SQLITE_HISTORY DEFAULT="${XDG_STATE_HOME}/sqlite_history"
57
58 # Stack
59 STACK_ROOT DEFAULT="${XDG_DATA_HOME}/stack"
60
61 # Nodejs
62 NVM_DIR DEFAULT="${XDG_DATA_HOME}/nvm"
63 NPM_CONFIG_USERCONFIG DEFAULT="${XDG_CONFIG_HOME}/npm/npmrc"
64
65 # TMUX
66 TMUX_TMPDIR DEFAULT="${XDG_RUNTIME_DIR}"
67
68 # node_modules/pm2/paths.js
69 PM2_HOME DEFAULT="${XDG_DATA_HOME}/pm2"
70 PM2_CONF_FILE DEFAULT="${XDG_CONFIG_HOME}/pm2/conf.js"
71 PM2_MODULE_CONF_FILE DEFAULT="${XDG_CONFIG_HOME}/pm2/module_conf.js"
72 PM2_LOG_FILE_PATH DEFAULT="${XDG_STATE_HOME}/pm2/pm2.log"
73 PM2_PID_FILE_PATH DEFAULT="${XDG_RUNTIME_DIR}/pm2/pm2.pid"
74 PM2_RELOAD_LOCKFILE DEFAULT="${XDG_RUNTIME_DIR}/pm2/reload.lock"
75 PM2_DEFAULT_PID_PATH DEFAULT="${XDG_RUNTIME_DIR}/pm2/pids"
76 PM2_DEFAULT_LOG_PATH DEFAULT="${XDG_STATE_HOME}/pm2/logs"
77 PM2_DAEMON_RPC_PORT DEFAULT="${XDG_RUNTIME_DIR}/pm2/rpc.sock"
78 PM2_DAEMON_PUB_PORT DEFAULT="${XDG_RUNTIME_DIR}/pm2/pub.sock"
79 PM2_INTERACTOR_RPC_PORT DEFAULT="${XDG_RUNTIME_DIR}/pm2/interactor.sock"
80 PM2_INTERACTOR_LOG_FILE_PATH DEFAULT="${XDG_STATE_HOME}/pm2/agent.log"
81 PM2_INTERACTOR_PID_PATH DEFAULT="${XDG_RUNTIME_DIR}/pm2/agent.pid"
82 PM2_INTERACTION_CONF DEFAULT="${XDG_CONFIG_HOME}/pm2/agent.json5"