tangled
alpha
login
or
join now
wiro.world
/
dotfiles
2
fork
atom
yep, more dotfiles
2
fork
atom
overview
issues
1
pulls
1
pipelines
weird-row-server: add ripe atlas probe
wiro.world
1 month ago
fe7b4d7f
15a6f760
verified
This commit was signed with the committer's
known signature
.
wiro.world
SSH Key Fingerprint:
SHA256:SmMcWpNAnL+VAgItSawvXgdPVn7f1rsyAuB/5VNclKY=
0/1
nix.yml
running
7w ago
+62
2 changed files
expand all
collapse all
unified
split
hosts
weird-row-server
default.nix
ripe-atlas.nix
+1
hosts/weird-row-server/default.nix
reviewed
···
30
30
./lldap.nix
31
31
./miniflux.nix
32
32
./pds.nix
33
33
+
./ripe-atlas.nix
33
34
./tailscale.nix
34
35
./tangled.nix
35
36
./thelounge.nix
+61
hosts/weird-row-server/ripe-atlas.nix
reviewed
···
1
1
+
{
2
2
+
config,
3
3
+
lib,
4
4
+
pkgs,
5
5
+
...
6
6
+
}:
7
7
+
8
8
+
{
9
9
+
config = {
10
10
+
local.ports.ripe-atlas-http = 3016;
11
11
+
local.ports.ripe-atlas-telnetd = 3017;
12
12
+
13
13
+
virtualisation.oci-containers.containers."ripe-atlas" = {
14
14
+
image = "docker.io/jamesits/ripe-atlas:latest";
15
15
+
16
16
+
capabilities = {
17
17
+
"NET_RAW" = true;
18
18
+
"KILL" = true;
19
19
+
"SETUID" = true;
20
20
+
"SETGID" = true;
21
21
+
"FOWNER" = true;
22
22
+
"CHOWN" = true;
23
23
+
"DAC_OVERRIDE" = true;
24
24
+
};
25
25
+
26
26
+
environment = {
27
27
+
RXTXRPT = "yes";
28
28
+
HTTP_POST_PORT = config.local.ports.ripe-atlas-http.string;
29
29
+
TELNETD_PORT = config.local.ports.ripe-atlas-telnetd.string;
30
30
+
};
31
31
+
32
32
+
volumes = [
33
33
+
"/etc/ripe-atlas:/etc/ripe-atlas:Z"
34
34
+
"/run/ripe-atlas:/run/ripe-atlas:Z"
35
35
+
"/var/spool/ripe-atlas:/var/spool/ripe-atlas:Z"
36
36
+
];
37
37
+
38
38
+
extraOptions = [
39
39
+
"--memory=256m"
40
40
+
"--network=host"
41
41
+
];
42
42
+
};
43
43
+
44
44
+
systemd.services."podman-ripe-atlas" =
45
45
+
let
46
46
+
mkdir = lib.getExe' pkgs.coreutils "mkdir";
47
47
+
in
48
48
+
49
49
+
{
50
50
+
preStart = ''
51
51
+
${mkdir} -p /run/ripe-atlas
52
52
+
${mkdir} -p /etc/ripe-atlas
53
53
+
${mkdir} -p /var/spool/ripe-atlas
54
54
+
'';
55
55
+
serviceConfig = {
56
56
+
Restart = "always";
57
57
+
RestartSec = "10s";
58
58
+
};
59
59
+
};
60
60
+
};
61
61
+
}