refactor(nix): consolidate fragmented attribute-path writes

Same owner written as '.a = ...; .b = ...;' repeated dotted paths is now one
attrset block. Behaviour-preserving (values, list order and comments kept):

- 3xui-reconfig description/serviceConfig in server/ and vds/ (separate units,
  different PANEL_URL - deliberately not extracted into a shared module)
- authelia after/wants inside the existing config = mkIf wrapper
- gitea-actions-runner settings: runner/metrics/health_check/container
- boot.loader.grub, services.logind, pxe-infra.bridge, pipewire.alsa
- nix.{distributedBuilds,buildMachines}; nix.settings on WSL (mkForce kept)
- build.activation on termux (nix-on-droid freeform)

Also in this commit: lamet.opencodes.zeroq.su upstream 6061 -> 4096
(verified by nix eval of the vhost proxyPass).

nix-instantiate --parse: 12/12 files OK.
This commit is contained in:
oqyude committed 2026-10-25 02:10:05 +03:00
1 parent 69691f96d1
commit 066b3acec1
11 files changed
+95 -66

No files matched your search

+13 -10
View File
@@ -76,16 +76,19 @@
#
# В otreca аналогичный юнит определён в `modules/vds/default.nix` с
# другим `PANEL_URL`/`apiToken`.
systemd.services."3xui-reconfig".serviceConfig.Type = "oneshot";
systemd.services."3xui-reconfig".serviceConfig.ExecStart =
lib.getExe config.modules."3x-ui".reconfig;
systemd.services."3xui-reconfig".serviceConfig.Environment = [
"PANEL_URL=https://127.0.0.1:2049"
"PANEL_BASE=@base"
"PANEL_TOKEN=@api_token"
];
systemd.services."3xui-reconfig".description =
"Перегенерировать config.json 3x-ui из БД и рестартнуть xray (R1.18).";
systemd.services."3xui-reconfig" = {
description =
"Перегенерировать config.json 3x-ui из БД и рестартнуть xray (R1.18).";
serviceConfig = {
Type = "oneshot";
ExecStart = lib.getExe config.modules."3x-ui".reconfig;
Environment = [
"PANEL_URL=https://127.0.0.1:2049"
"PANEL_BASE=@base"
"PANEL_TOKEN=@api_token"
];
};
};
# engipy webapp — split architecture:
# - sapphira : host.engipy-frontend.enable → nginx vhost (engipy.zeroq.su)
# с /api/* на rydiwo:8000 и / → /var/lib/engipy/web