mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-02-15 09:08:58 -05:00
40 lines
822 B
Nix
40 lines
822 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
|
|
environment.systemPackages = builtins.attrValues {
|
|
inherit (pkgs.unstable)
|
|
monero-gui
|
|
monero-cli
|
|
p2pool
|
|
xmrig
|
|
;
|
|
};
|
|
|
|
users.users.p2pool = {
|
|
isSystemUser = true;
|
|
group = "p2pool";
|
|
description = "p2pool daemon user";
|
|
home = "/var/lib/p2pool";
|
|
createHome = true;
|
|
};
|
|
|
|
users.groups.p2pool = { };
|
|
|
|
systemd.services.p2pool = {
|
|
description = "p2pool daemon";
|
|
after = [ "network.target" ];
|
|
wantedBy = [ "multi-user.target" ];
|
|
|
|
serviceConfig = {
|
|
User = "p2pool";
|
|
Group = "p2pool";
|
|
ExecStart = "${pkgs.unstable.p2pool}/bin/p2pool --host 127.0.0.1 --wallet 48kwCPHhnbXfriMCtGHu4BRrc8dwmhUxVdD1ycATtDigW4Fjrsfhi7wQ2QSNyvspxaN7Tt2dApAEbFhTeSPD9w1x4JmyzTg --nano";
|
|
Restart = "always";
|
|
};
|
|
};
|
|
|
|
}
|