* 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"
|
"samba"
|
||||||
"cups"
|
"cups"
|
||||||
"ftp"
|
"ftp"
|
||||||
|
"ejabberd"
|
||||||
"common"
|
"common"
|
||||||
"common-console" # shared stuff for interactive local sessions
|
"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 =
|
path =
|
||||||
pkgs.lib.optionals (!config.environment.cleanStart) [
|
pkgs.lib.optionals (!config.environment.cleanStart) [
|
||||||
|
pkgs.acl
|
||||||
|
pkgs.attr
|
||||||
pkgs.bashInteractive # bash with ncurses support
|
pkgs.bashInteractive # bash with ncurses support
|
||||||
pkgs.bzip2
|
pkgs.bzip2
|
||||||
pkgs.coreutils
|
pkgs.coreutils
|
||||||
@ -123,6 +125,7 @@ rec {
|
|||||||
pkgs.gzip
|
pkgs.gzip
|
||||||
pkgs.iputils
|
pkgs.iputils
|
||||||
pkgs.less
|
pkgs.less
|
||||||
|
pkgs.libcap
|
||||||
pkgs.lvm2
|
pkgs.lvm2
|
||||||
pkgs.man
|
pkgs.man
|
||||||
pkgs.mdadm
|
pkgs.mdadm
|
||||||
|
@ -71,7 +71,7 @@ mkIf config.services.ejabberd.enable {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p ${cfg.confDir}
|
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
|
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'
|
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…
x
Reference in New Issue
Block a user