feat: allow using suite on non-nixos systems

This commit is contained in:
FUFSoB committed 2026-09-17 13:27:08 +05:00
1 parent e852bef400
commit 3b568bb54e
63 files changed
+3572 -523

No files matched your search

+3
View File
@@ -63,6 +63,9 @@
if proxyInboundsSubscriptionsBaseUrl == null then "" else proxyInboundsSubscriptionsBaseUrl;
autoProxyEnabled = if proxyCfg.autoProxy.enable then "1" else "0";
autoProxyStateDir = constants.autoProxyStateDir;
inherit (constants) stateDir runtimeDir serviceManager;
privileged = if constants.privileged then "1" else "0";
supervisorCtl = if constants.serviceManager == "supervisor" then constants.systemctl else "";
singBox = "${singBoxCfg.package}/bin/sing-box";
localProxyUrl = "http://${
if proxyCfg.listener.address == "0.0.0.0" then "127.0.0.1" else proxyCfg.listener.address