Skip to content

Commit 1b5af4a

Browse files
committed
projects/GoToSocial: init project
Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
1 parent 9690d93 commit 1b5af4a

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed

projects/GoToSocial/default.nix

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
lib,
3+
pkgs,
4+
sources,
5+
...
6+
}@args:
7+
8+
{
9+
metadata = {
10+
summary = "GoToSocial is an ActivityPub social network server, written in Golang.";
11+
subgrants = {
12+
Commons = [
13+
"GoToSocial-1.0"
14+
];
15+
Entrust = [
16+
"GoToSocial"
17+
"GoToSocial-scale"
18+
];
19+
};
20+
links = {
21+
docs = {
22+
text = "Documentation";
23+
url = "https://docs.gotosocial.org";
24+
};
25+
homepage = {
26+
text = "Homepage";
27+
url = "https://gotosocial.org";
28+
};
29+
repo = {
30+
text = "Source repository";
31+
url = "https://codeberg.org/superseriousbusiness/gotosocial";
32+
};
33+
};
34+
};
35+
36+
nixos.modules.services = {
37+
gotosocial = {
38+
name = "GoToSocial";
39+
module = lib.moduleLocFromOptionString "services.gotosocial";
40+
examples.basic = {
41+
module = ./services/gotosocial/examples/basic.nix;
42+
tests.basic.module = pkgs.nixosTests.gotosocial;
43+
};
44+
links = {
45+
build = {
46+
text = "Build from source";
47+
url = "https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md#development";
48+
};
49+
test = {
50+
text = "Test instructions";
51+
url = "https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md#testing";
52+
};
53+
};
54+
};
55+
};
56+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{ ... }:
2+
{
3+
services.gotosocial = {
4+
enable = true;
5+
setupPostgresqlDB = true;
6+
settings = {
7+
application-name = "My GoToSocial";
8+
host = "gotosocial.example.com";
9+
protocol = "http";
10+
bind-address = "127.0.0.1";
11+
port = 8080;
12+
};
13+
};
14+
}

0 commit comments

Comments
 (0)