blob: dec79ba51f52e7aaa25576baa71a58c553eb8e7e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{...}: let
murmurStore = "/var/lib/murmur";
in {
vhack.persist.directories = [
{
directory = "/var/lib/murmur";
user = "murmur";
group = "murmur";
mode = "0700";
}
];
services.murmur = {
enable = true;
openFirewall = true;
welcometext = ''
<b>You never get a second chance to make a first impression</b><br>
The entire team of [name of the company] is thrilled to welcome you on board. We hope you’ll do some amazing work here!
'';
sslKey = "${murmurStore}/key.pem";
sslCert = "${murmurStore}/fullchain.pem";
registerUrl = "vhack.eu";
registerName = "vhack";
registerHostname = "mumble.vhack.eu";
hostName = "mumble.vhack.eu";
clientCertRequired = true;
bandwidth = 7200000;
};
security.acme.certs.murmur = {
domain = "mumble.vhack.eu";
postRun =
/*
bash
*/
''
set -x
rm "${murmurStore}/key.pem"
rm "${murmurStore}/fullchain.pem"
cp key.pem "${murmurStore}";
cp fullchain.pem "${murmurStore}";
chown murmur:murmur "${murmurStore}/key.pem"
chown murmur:murmur "${murmurStore}/fullchain.pem"
'';
};
}
|