2015-07-16 13:51:01 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
## TODO sort and split up
|
|
|
|
{
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
aria2
|
2022-05-29 17:58:17 +00:00
|
|
|
generate-secrets
|
2015-07-16 13:51:01 +00:00
|
|
|
gnupg1compat
|
|
|
|
htop
|
|
|
|
i3lock
|
2022-05-29 17:58:17 +00:00
|
|
|
l-gen-secrets
|
2015-07-16 13:51:01 +00:00
|
|
|
mosh
|
|
|
|
pass
|
|
|
|
pavucontrol
|
|
|
|
pv
|
|
|
|
pwgen
|
|
|
|
remmina
|
2021-10-26 19:01:00 +00:00
|
|
|
ripgrep
|
2015-07-16 13:51:01 +00:00
|
|
|
silver-searcher
|
2021-10-26 19:01:00 +00:00
|
|
|
transmission
|
2015-07-16 13:51:01 +00:00
|
|
|
wget
|
|
|
|
xsel
|
2022-05-29 17:58:17 +00:00
|
|
|
yt-dlp
|
|
|
|
(pkgs.writeDashBin "youtube-dl" ''
|
|
|
|
exec ${pkgs.yt-dlp}/bin/yt-dlp "$@"
|
|
|
|
'')
|
2021-10-26 19:01:00 +00:00
|
|
|
(pkgs.writeDashBin "tether-on" ''
|
|
|
|
adb shell svc usb setFunctions rndis
|
|
|
|
'')
|
|
|
|
(pkgs.writeDashBin "tether-off" ''
|
|
|
|
adb shell svc usb setFunctions
|
|
|
|
'')
|
2022-05-29 17:58:17 +00:00
|
|
|
(pkgs.writeDashBin "deploy" ''
|
|
|
|
set -eu
|
|
|
|
export SYSTEM="$1"
|
|
|
|
$(nix-build $HOME/sync/stockholm/lass/krops.nix --no-out-link --argstr name "$SYSTEM" -A deploy)
|
|
|
|
'')
|
|
|
|
(pkgs.writeDashBin "lassul.us" ''
|
|
|
|
TMPDIR=$(${pkgs.coreutils}/bin/mktemp -d)
|
|
|
|
${pkgs.pass}/bin/pass show admin/ovh/api.config > "$TMPDIR"/ovh-secrets.json
|
|
|
|
OVH_ZONE_CONFIG="$TMPDIR"/ovh-secrets.json ${pkgs.ovh-zone}/bin/ovh-zone import /etc/zones/lassul.us lassul.us
|
|
|
|
${pkgs.coreutils}/bin/rm -rf "$TMPDIR"
|
|
|
|
'')
|
|
|
|
(pkgs.writeDashBin "btc-coinbase" ''
|
|
|
|
${pkgs.curl}/bin/curl -Ss 'https://api.coinbase.com/v2/prices/spot?currency=EUR' | ${pkgs.jq}/bin/jq '.data.amount'
|
|
|
|
'')
|
|
|
|
(pkgs.writeDashBin "btc-wex" ''
|
|
|
|
${pkgs.curl}/bin/curl -Ss 'https://wex.nz/api/3/ticker/btc_eur' | ${pkgs.jq}/bin/jq '.btc_eur.avg'
|
2021-10-26 19:01:00 +00:00
|
|
|
'')
|
2022-05-29 17:58:17 +00:00
|
|
|
(pkgs.writeDashBin "btc-kraken" ''
|
|
|
|
${pkgs.curl}/bin/curl -Ss 'https://api.kraken.com/0/public/Ticker?pair=BTCEUR' | ${pkgs.jq}/bin/jq '.result.XXBTZEUR.a[0]'
|
2021-10-26 19:01:00 +00:00
|
|
|
'')
|
2015-07-16 13:51:01 +00:00
|
|
|
];
|
|
|
|
}
|