Compare commits

...

3 Commits

Author SHA1 Message Date
cf1ebe484b upd arhip 2026-04-15 16:27:12 +03:00
9b8468fada nixos config update 2026-04-04 17:41:48 +03:00
525e4d5092 gitea 2026-04-04 17:41:26 +03:00
4 changed files with 92 additions and 4 deletions

View File

@ -18,6 +18,15 @@
"net.ipv6.conf.default.disable_ipv6" = 1; "net.ipv6.conf.default.disable_ipv6" = 1;
"net.ipv6.conf.lo.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; hardware.enableRedistributableFirmware = true;
boot.extraModulePackages = with config.boot.kernelPackages; [ boot.extraModulePackages = with config.boot.kernelPackages; [
r8125 r8125
@ -113,6 +122,9 @@
ignoreregex = ignoreregex =
''; '';
# For VsCode
programs.nix-ld.enable = true;
# Disable suspend of my homelab. Added when my server every ~15 minutes suspend. # Disable suspend of my homelab. Added when my server every ~15 minutes suspend.
services.logind.settings.Login = { services.logind.settings.Login = {
HandlePowerKey = "poweroff"; HandlePowerKey = "poweroff";
@ -250,8 +262,8 @@
}; };
# Open ports in the firewall. # Open ports in the firewall.
networking.firewall.allowedTCPPorts = [22 80 443 53 ]; networking.firewall.allowedTCPPorts = [22 80 443 53 3389 3724 8086];
networking.firewall.allowedUDPPorts = [ 53 ]; networking.firewall.allowedUDPPorts = [53 3389 ];
# networking.firewall.allowedUDPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether. # Or disable the firewall altogether.
# networking.firewall.enable = false; # networking.firewall.enable = false;

File diff suppressed because one or more lines are too long

View 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

View 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