mirror of
https://github.com/pvlnes/homelab.git
synced 2026-06-03 19:13:50 +00:00
Compare commits
3 Commits
7141b20a8d
...
cf1ebe484b
| Author | SHA1 | Date | |
|---|---|---|---|
| cf1ebe484b | |||
| 9b8468fada | |||
| 525e4d5092 |
@ -18,6 +18,15 @@
|
||||
"net.ipv6.conf.default.disable_ipv6" = 1;
|
||||
"net.ipv6.conf.lo.disable_ipv6" = 1;
|
||||
};
|
||||
# Boot blacklist WiFi drivers
|
||||
boot.blacklistedKernelModules = [
|
||||
"mt7921e"
|
||||
"mt7921_common"
|
||||
"mt76_connac_lib"
|
||||
"mt76"
|
||||
"mt792x_lib"
|
||||
"mt7921_lib"
|
||||
];
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
boot.extraModulePackages = with config.boot.kernelPackages; [
|
||||
r8125
|
||||
@ -113,6 +122,9 @@
|
||||
ignoreregex =
|
||||
'';
|
||||
|
||||
# For VsCode
|
||||
programs.nix-ld.enable = true;
|
||||
|
||||
# Disable suspend of my homelab. Added when my server every ~15 minutes suspend.
|
||||
services.logind.settings.Login = {
|
||||
HandlePowerKey = "poweroff";
|
||||
@ -250,8 +262,8 @@
|
||||
};
|
||||
|
||||
# Open ports in the firewall.
|
||||
networking.firewall.allowedTCPPorts = [22 80 443 53 ];
|
||||
networking.firewall.allowedUDPPorts = [ 53 ];
|
||||
networking.firewall.allowedTCPPorts = [22 80 443 53 3389 3724 8086];
|
||||
networking.firewall.allowedUDPPorts = [53 3389 ];
|
||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||
# Or disable the firewall altogether.
|
||||
# networking.firewall.enable = false;
|
||||
|
||||
File diff suppressed because one or more lines are too long
11
services/gitea/.env.example
Normal file
11
services/gitea/.env.example
Normal file
@ -0,0 +1,11 @@
|
||||
POSTGRES_USER=gitea
|
||||
POSTGRES_PASSWORD=change_me
|
||||
POSTGRES_DB=gitea
|
||||
GITEA_DB_TYPE=postgres
|
||||
GITEA_DB_HOST=gitea-db:5432
|
||||
GITEA_DB_NAME=gitea
|
||||
GITEA_DB_USER=gitea
|
||||
GITEA_DB_PASSWORD=change_me
|
||||
GITEA_ROOT_URL=https://git.sesur.dev/
|
||||
GITEA_SSH_DOMAIN=git.sesur.dev
|
||||
GITEA_SSH_PORT=2222
|
||||
26
services/gitea/docker-compose.yml
Normal file
26
services/gitea/docker-compose.yml
Normal file
@ -0,0 +1,26 @@
|
||||
services:
|
||||
gitea:
|
||||
image: gitea/gitea:1.22
|
||||
container_name: gitea
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- /srv/gitea/env/gitea.env
|
||||
environment:
|
||||
USER_UID: "1000"
|
||||
USER_GID: "1000"
|
||||
volumes:
|
||||
- /srv/gitea/data:/data
|
||||
ports:
|
||||
- "127.0.0.1:3001:3000"
|
||||
- "2222:22"
|
||||
depends_on:
|
||||
- gitea-db
|
||||
|
||||
gitea-db:
|
||||
image: postgres:15
|
||||
container_name: gitea-db
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- /srv/gitea/env/gitea.env
|
||||
volumes:
|
||||
- /srv/gitea/postgres:/var/lib/postgresql/data
|
||||
Loading…
Reference in New Issue
Block a user