mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
feat: added rqbit
This commit is contained in:
parent
e8484db9c3
commit
83bab8d7d8
2 changed files with 13 additions and 0 deletions
11
modules/home/cli/utilities/rqbit/default.nix
Normal file
11
modules/home/cli/utilities/rqbit/default.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
home.packages = builtins.attrValues {
|
||||||
|
inherit (pkgs)
|
||||||
|
rqbit
|
||||||
|
;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -63,6 +63,8 @@ in
|
||||||
${remoteRebuild}
|
${remoteRebuild}
|
||||||
${sshCommand}
|
${sshCommand}
|
||||||
${microVMSshCommand}
|
${microVMSshCommand}
|
||||||
|
addr:
|
||||||
|
http get https://mine.defensio.io/api/statistics/addr1q87k2jlckh6ujqx4ymkdd4jrhy6gukdtum0p77pdh5gqcw8ctl65fvaw097l32ta6m8hth3xu9cjfz70y34gs2mdfzlsj465th | get local_with_donate | get dfo_allocation | $in / 1000000
|
||||||
balance:
|
balance:
|
||||||
#!/usr/bin/env nu
|
#!/usr/bin/env nu
|
||||||
let results = [${balanceHosts}] | each { |h| let val = (^ssh ...($h.ssh | split row " ") 'nu -c "open /var/lib/defenseio-data/MidnightMiner/balances.json | get snapshots | last | get balance"' | into float); print $"($h.name):"; print $val; $val }
|
let results = [${balanceHosts}] | each { |h| let val = (^ssh ...($h.ssh | split row " ") 'nu -c "open /var/lib/defenseio-data/MidnightMiner/balances.json | get snapshots | last | get balance"' | into float); print $"($h.name):"; print $val; $val }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue