mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
feat: added defenseio miner
This commit is contained in:
parent
8a0e8183bb
commit
aca06b9d5f
1 changed files with 17 additions and 2 deletions
|
|
@ -41,8 +41,14 @@ in
|
|||
autostart = true;
|
||||
config =
|
||||
let
|
||||
ceresCpu = 35;
|
||||
erisCpu = 4;
|
||||
marsCpu = 18;
|
||||
deimosCpu = 5;
|
||||
phobosCpu = 5;
|
||||
|
||||
macAddress = "02:00:00:00:00:${macOctet}";
|
||||
workers = deviceLogic 35 4 18 5 6;
|
||||
workers = deviceLogic ceresCpu erisCpu marsCpu deimosCpu phobosCpu;
|
||||
in
|
||||
{
|
||||
environment.systemPackages = [
|
||||
|
|
@ -67,7 +73,16 @@ in
|
|||
mac = macAddress;
|
||||
}
|
||||
];
|
||||
mem = deviceLogic 45000 5120 22000 6144 7168;
|
||||
mem =
|
||||
let
|
||||
num = 1024;
|
||||
ceresRam = num * 45;
|
||||
erisRam = num * 6;
|
||||
marsRam = num * 22;
|
||||
deimosRam = num * 6;
|
||||
phobosRam = num * 7;
|
||||
in
|
||||
deviceLogic ceresRam erisRam marsRam deimosRam phobosRam;
|
||||
shares = [
|
||||
{
|
||||
mountPoint = "/nix/.ro-store";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue