blob: d3340154e8dd2ed53a1b6cf7c4649e1c74de1858 (
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
|
{
config,
inputs,
lib,
...
}:
with lib;
let
cfg = config.nixfiles.modules.murmur;
in
{
options.nixfiles.modules.murmur.enable = mkEnableOption "Murmur";
config = mkIf cfg.enable {
ark.directories = [ "/var/lib/murmur" ];
secrets.murmur-environment = {
file = "${inputs.self}/secrets/murmur-environment";
owner = "murmur";
group = "murmur";
};
services.murmur = {
enable = true;
openFirewall = true;
logDays = -1;
registerName = mkDefault my.domain.shire;
registerHostname = mkDefault my.domain.shire;
bandwidth = 256000;
password = "$MURMUR_PASSWORD";
environmentFile = config.secrets."murmur-environment".path;
};
};
}
|