* Synced with trunk @ 15006
svn path=/nixos/branches/modular-nixos/; revision=15012
This commit is contained in:
commit
9741be988c
@ -204,6 +204,7 @@ let
|
||||
"samba"
|
||||
"cups"
|
||||
"ftp"
|
||||
"ejabberd"
|
||||
"common"
|
||||
"common-console" # shared stuff for interactive local sessions
|
||||
]
|
||||
|
4
etc/pam.d/ejabberd
Normal file
4
etc/pam.d/ejabberd
Normal file
@ -0,0 +1,4 @@
|
||||
auth include common
|
||||
account include common
|
||||
password include common
|
||||
session include common
|
@ -108,6 +108,8 @@ rec {
|
||||
];
|
||||
path =
|
||||
pkgs.lib.optionals (!config.environment.cleanStart) [
|
||||
pkgs.acl
|
||||
pkgs.attr
|
||||
pkgs.bashInteractive # bash with ncurses support
|
||||
pkgs.bzip2
|
||||
pkgs.coreutils
|
||||
@ -123,6 +125,7 @@ rec {
|
||||
pkgs.gzip
|
||||
pkgs.iputils
|
||||
pkgs.less
|
||||
pkgs.libcap
|
||||
pkgs.lvm2
|
||||
pkgs.man
|
||||
pkgs.mdadm
|
||||
|
@ -71,7 +71,7 @@ mkIf config.services.ejabberd.enable {
|
||||
fi
|
||||
|
||||
mkdir -p ${cfg.confDir}
|
||||
sed -e 's|{hosts, \["localhost"\]}.|{hosts, \[${cfg.virtualHosts}\]}.|' ${pkgs.ejabberd}/etc/ejabberd/ejabberd.cfg > ${cfg.confDir}/ejabberd.cfg
|
||||
test -f ${cfg.confDir}/ejabberd.cfg || sed -e 's|{hosts, \["localhost"\]}.|{hosts, \[${cfg.virtualHosts}\]}.|' ${pkgs.ejabberd}/etc/ejabberd/ejabberd.cfg > ${cfg.confDir}/ejabberd.cfg
|
||||
end script
|
||||
|
||||
respawn ${pkgs.bash}/bin/sh -c 'export PATH=$PATH:${pkgs.ejabberd}/sbin; cd ~; ejabberdctl --logs ${cfg.logsDir} --spool ${cfg.spoolDir} --config ${cfg.confDir}/ejabberd.cfg start; sleep 1d'
|
||||
|
Loading…
Reference in New Issue
Block a user