Compare commits

...

2 commits

Author SHA1 Message Date
e8dc307125 towor
Signed-off-by: Alex Stan <alex.stan.2010@proton.me>
2024-04-09 23:25:40 +03:00
875856f214 meow
Signed-off-by: Alex Stan <alex.stan.2010@proton.me>
2024-04-09 23:11:27 +03:00
3 changed files with 34 additions and 3 deletions

View file

@ -17,6 +17,7 @@ in {
( import ./services/cloud.nix inputs )
( import ./services/vaultwarden.nix inputs )
( import ./services/matrix.nix inputs )
( import ./services/tor.nix inputs )
# ( import ./services/office.nix inputs )
# ( import ./services/Sharkey inputs )
# ( import ./services/caddy.nix inputs ) # doesn't work

View file

@ -33,7 +33,7 @@ services:
networks:
- shonk
volumes:
- ./redis:/data
- reddits:/data
healthcheck:
test: "redis-cli ping"
interval: 5s
@ -41,7 +41,7 @@ services:
db:
restart: always
image: postgres:15-alpine
image: postgres:15
command: >-
-c max_connections=200
-c shared_buffers=512MB
@ -61,11 +61,19 @@ services:
env_file:
- .config/docker.env
volumes:
- ./db:/var/lib/postgresql/data
# - ./db:/var/lib/postgresql/data
- datagays:/var/lib/postgresql/data
healthcheck:
test: "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
interval: 5s
retries: 20
debinyan:
image: debian:latest
volumes:
- ./db:/data/db_orig
- datagays:/data/db
- ./redis.bak:/data/redis_orig
- reddits:/data/redis
# meilisearch:
# restart: always
@ -81,3 +89,8 @@ services:
networks:
shonk:
volumes:
datagays:
reddits:

View file

@ -0,0 +1,17 @@
inputs: { ... }: { # I probably don't need the inputs, but I'm adding them
# as an argument to be consistent with my other service modules
services.tor = {
enable = true; # fuck censorship, long live privacy and anonimity
relay = {
enable = true;
role = "relay"; # I don't want the police to show up at my door
};
settings = {
ORPort = 9001;
ControlPort = 9051;
Nickname = "graphite";
BandWidthRate = "100 MBytes";
Address = "tor.phite.ro";
};
};
}