diff --git a/services/xmrig.nix b/services/xmrig.nix index 376d4d4..2d4dc04 100644 --- a/services/xmrig.nix +++ b/services/xmrig.nix @@ -2,11 +2,10 @@ config, lib, pkgs, - hostname, + service_configs, ... }: let - walletAddress = lib.strings.trim (builtins.readFile ../secrets/xmrig-wallet); threadCount = 12; in { @@ -33,11 +32,8 @@ in pools = [ { - url = "gulf.moneroocean.stream:20128"; - user = walletAddress; - pass = hostname + "~rx/0"; - keepalive = true; - tls = true; + url = "127.0.0.1:${builtins.toString service_configs.ports.p2pool_stratum}"; + tls = false; } ]; };