File tree Expand file tree Collapse file tree 2 files changed +70
-0
lines changed
services/gotosocial/examples Expand file tree Collapse file tree 2 files changed +70
-0
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments