this repo has no description
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(dusk@devel.mobi): use service run instead of up to start netbird to make socket work [skip ci]

dusk e641f1e4 53b4a94f

+4 -5
+4 -5
users/modules/netbird/default.nix
··· 4 4 cfg = config.services.netbird; 5 5 wrapped = pkgs.writers.writeBashBin "netbird" '' 6 6 ${pkgs.netbird}/bin/netbird \ 7 - --daemon-addr "unix://netbird.sock" \ 7 + --daemon-addr "unix://$XDG_RUNTIME_DIR/netbird.sock" \ 8 8 --config "${config.xdg.configHome}/netbird/config.json" $@ 9 9 ''; 10 10 proxychainsCfg = pkgs.writers.writeText "proxychains.conf" '' ··· 14 14 socks5 127.0.0.1 1080 15 15 ''; 16 16 wrappedProxychains = pkgs.writers.writeBashBin "netbird-proxychains" '' 17 - ${pkgs.proxychains-ng}/bin/proxychains4 \ 18 - -f "${proxychainsCfg}" \ 19 - $@ 17 + ${pkgs.proxychains-ng}/bin/proxychains4 -f "${proxychainsCfg}" $@ 20 18 ''; 21 19 in { 22 20 options = { ··· 48 46 }; 49 47 50 48 Service = { 51 - ExecStart = "${pkgs.netbird}/bin/netbird up -F"; 49 + ExecStart = "${pkgs.netbird}/bin/netbird service run"; 52 50 Restart = "on-failure"; 53 51 RestartSec = "5s"; 54 52 Environment = l.mapAttrsToList (k: v: "${k}=${toString v}") { ··· 62 60 NB_SETUP_KEY_FILE = l.replaceString "\${XDG_RUNTIME_DIR}" "%t" cfg.setupKeyFile; 63 61 NB_MANAGEMENT_URL = cfg.managementUrl; 64 62 NB_CONFIG = "${config.xdg.configHome}/netbird/config.json"; 63 + NB_LOG_FILE = "${config.xdg.dataHome}/netbird/netbird.log"; 65 64 NB_DAEMON_ADDR = "unix://%t/netbird.sock"; 66 65 }; 67 66 };