* Synced with trunk @ 15006

svn path=/nixos/branches/modular-nixos/; revision=15012
This commit is contained in:
Nicolas Pierron 2009-04-13 11:15:19 +00:00
commit 9741be988c
4 changed files with 9 additions and 1 deletions

View file

@ -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
View file

@ -0,0 +1,4 @@
auth include common
account include common
password include common
session include common

View file

@ -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

View file

@ -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'