mirror of
https://codeberg.org/ultra/nixos-dotfiles.git
synced 2024-11-26 15:43:08 +02:00
Compare commits
2 commits
939f1bdf2a
...
e8dc307125
Author | SHA1 | Date | |
---|---|---|---|
e8dc307125 | |||
875856f214 |
3 changed files with 34 additions and 3 deletions
|
@ -17,6 +17,7 @@ in {
|
||||||
( import ./services/cloud.nix inputs )
|
( import ./services/cloud.nix inputs )
|
||||||
( import ./services/vaultwarden.nix inputs )
|
( import ./services/vaultwarden.nix inputs )
|
||||||
( import ./services/matrix.nix inputs )
|
( import ./services/matrix.nix inputs )
|
||||||
|
( import ./services/tor.nix inputs )
|
||||||
# ( import ./services/office.nix inputs )
|
# ( import ./services/office.nix inputs )
|
||||||
# ( import ./services/Sharkey inputs )
|
# ( import ./services/Sharkey inputs )
|
||||||
# ( import ./services/caddy.nix inputs ) # doesn't work
|
# ( import ./services/caddy.nix inputs ) # doesn't work
|
||||||
|
|
|
@ -33,7 +33,7 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- shonk
|
- shonk
|
||||||
volumes:
|
volumes:
|
||||||
- ./redis:/data
|
- reddits:/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: "redis-cli ping"
|
test: "redis-cli ping"
|
||||||
interval: 5s
|
interval: 5s
|
||||||
|
@ -41,7 +41,7 @@ services:
|
||||||
|
|
||||||
db:
|
db:
|
||||||
restart: always
|
restart: always
|
||||||
image: postgres:15-alpine
|
image: postgres:15
|
||||||
command: >-
|
command: >-
|
||||||
-c max_connections=200
|
-c max_connections=200
|
||||||
-c shared_buffers=512MB
|
-c shared_buffers=512MB
|
||||||
|
@ -61,11 +61,19 @@ services:
|
||||||
env_file:
|
env_file:
|
||||||
- .config/docker.env
|
- .config/docker.env
|
||||||
volumes:
|
volumes:
|
||||||
- ./db:/var/lib/postgresql/data
|
# - ./db:/var/lib/postgresql/data
|
||||||
|
- datagays:/var/lib/postgresql/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
|
test: "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
|
||||||
interval: 5s
|
interval: 5s
|
||||||
retries: 20
|
retries: 20
|
||||||
|
debinyan:
|
||||||
|
image: debian:latest
|
||||||
|
volumes:
|
||||||
|
- ./db:/data/db_orig
|
||||||
|
- datagays:/data/db
|
||||||
|
- ./redis.bak:/data/redis_orig
|
||||||
|
- reddits:/data/redis
|
||||||
|
|
||||||
# meilisearch:
|
# meilisearch:
|
||||||
# restart: always
|
# restart: always
|
||||||
|
@ -81,3 +89,8 @@ services:
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
shonk:
|
shonk:
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
datagays:
|
||||||
|
reddits:
|
||||||
|
|
||||||
|
|
17
hosts/titan/services/tor.nix
Normal file
17
hosts/titan/services/tor.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue