foodotfiles/secrets/env
2020-04-04 11:30:43 +03:00

22 lines
1.3 KiB
Bash
Executable File

#!/bin/bash
export PASS_LIBREFM="$(pass entertainment/libre.fm | head -n 1)"
export PASS_MUSICBRAINZ="$(pass entertainment/musicbrainz.org | head -n 1)"
export PASS_LISTENBRAINZ="$(pass entertainment/musicbrainz.org | rg 'listenbrainz_token' | cut -d' ' -f2-)"
export PASS_MUSPY="$(pass entertainment/muspy.com | head -n 1)"
export PASS_ARIA2="$(pass linux/aria2 | head -n 1)"
export PASS_MPD="$(pass linux/mpd | head -n 1)"
export PASS_MPD_ADMIN="$(pass linux/mpd-admin | head -n 1)"
export PASS_IPMI="$(pass reekynet/idrac | head -n 1)"
export PASS_MQTT="$(pass reekynet/mqtt.reekynet.com | head -n 1)"
export ME_FULLNAME="$(pass me | head -n 1)"
export ME_ADDRESS="$(pass me | rg 'address' | cut -d' ' -f2-)"
export ME_PHONE="$(pass me | rg 'phone' | cut -d' ' -f2-)"
export WIREGUARD_MIRKWOOD_PRIVKEY="$(pass reekynet/wireguard/mirkwood | grep PrivateKey | cut -d' ' -f2-)"
export WIREGUARD_MIRKWOOD_PUBKEY="$(pass reekynet/wireguard/mirkwood | grep PublicKey | cut -d' ' -f2-)"
export WIREGUARD_MIRKWOOD_PSK="$(pass reekynet/wireguard/mirkwood | grep PreSharedKey | cut -d' ' -f2-)"
export WIREGUARD_MORIA_PRIVKEY="$(pass reekynet/wireguard/moria | grep PrivateKey | cut -d' ' -f2-)"
export WIREGUARD_MORIA_PUBKEY="$(pass reekynet/wireguard/moria | grep PublicKey | cut -d' ' -f2-)"