tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
xmrig: add meta.mainProgram
See #246386
arcnmx
2 years ago
0711d3d6
3406cbc6
+4
-2
3 changed files
expand all
collapse all
unified
split
nixos
modules
services
misc
xmrig.nix
pkgs
applications
misc
xmrig
default.nix
moneroocean.nix
+2
-2
nixos/modules/services/misc/xmrig.nix
···
59
59
after = [ "network.target" ];
60
60
description = "XMRig Mining Software Service";
61
61
serviceConfig = {
62
62
-
ExecStartPre = "${cfg.package}/bin/xmrig --config=${configFile} --dry-run";
63
63
-
ExecStart = "${cfg.package}/bin/xmrig --config=${configFile}";
62
62
+
ExecStartPre = "${lib.getExe cfg.package} --config=${configFile} --dry-run";
63
63
+
ExecStart = "${lib.getExe cfg.package} --config=${configFile}";
64
64
# https://xmrig.com/docs/miner/randomx-optimization-guide/msr
65
65
# If you use recent XMRig with root privileges (Linux) or admin
66
66
# privileges (Windows) the miner configure all MSR registers
+1
pkgs/applications/misc/xmrig/default.nix
···
66
66
description = "Monero (XMR) CPU miner";
67
67
homepage = "https://github.com/xmrig/xmrig";
68
68
license = licenses.gpl3Plus;
69
69
+
mainProgram = "xmrig";
69
70
platforms = platforms.unix;
70
71
maintainers = with maintainers; [ kim0 ];
71
72
};
+1
pkgs/applications/misc/xmrig/moneroocean.nix
···
15
15
description = "A fork of the XMRig CPU miner with support for algorithm switching";
16
16
homepage = "https://github.com/MoneroOcean/xmrig";
17
17
license = licenses.gpl3Plus;
18
18
+
mainProgram = "xmrig";
18
19
platforms = platforms.unix;
19
20
maintainers = with maintainers; [ j0hax ];
20
21
};