add monero miner

This commit is contained in:
Ivan Kirilov Dimitrov 2024-08-04 15:11:01 +02:00
parent 0bf31f6699
commit 76266ac03e
No known key found for this signature in database
GPG Key ID: 0BDAD4B211C49294
2 changed files with 26 additions and 3 deletions

View File

@ -17,10 +17,12 @@ in
{
flake.nixosConfigurations = {
nova = novaConfig [ mods.ivand ];
nova-music = novaConfig (with mods; [ music ivand ]);
nova-nonya = novaConfig (with mods; [ anon cryptocurrency ivand ]);
nova-ai = novaConfig (with mods; [ ai ivand ]);
nova-music = novaConfig (with mods; [ ivand music ]);
nova-crypto = novaConfig (with mods; [ ivand cryptocurrency ]);
nova-nonya = novaConfig (with mods; [ ivand anon cryptocurrency ]);
nova-ai = novaConfig (with mods; [ ivand ai ]);
install-iso = configWithModules { modules = (with mods; [ grub base shell wireless ]); };
vps = configWithModules { modules = (with mods; [ base shell security vps ]); };
stara-miner = configWithModules { modules = (with mods; [ base shell security monero-miner ]); };
};
}

View File

@ -215,6 +215,27 @@ top@{ inputs, moduleWithSystem, ... }: {
environment.systemPackages = with pkgs; [ monero-cli ];
services = { monero.enable = true; };
});
monero-miner = moduleWithSystem (toplevel@{ ... }: perSystem@{ ... }: {
services = {
xmrig = {
enable = true;
settings = {
autosave = true;
cpu = true;
opencl = false;
cuda = false;
pools = [
{
url = "pool.supportxmr.com:443";
user = "48e9t9xvq4M4HBWomz6whiY624YRCPwgJ7LPXngcc8pUHk6hCuR3k6ENpLGDAhPEHWaju8Z4btxkbENpcwaqWcBvLxyh5cn";
keepalive = true;
tls = true;
}
];
};
};
};
});
vps = moduleWithSystem (toplevel@{ ... }: perSystem@{ ... }: {
imports = [
inputs.vpsadminos.nixosConfigurations.container