Monero - configure daemon and wallet qubes

This commit is contained in:
unman 2022-10-06 01:36:57 +00:00
parent 57efd1fe77
commit 10f3a4c68a
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C
4 changed files with 42 additions and 0 deletions

24
monero/configure.sls Normal file
View File

@ -0,0 +1,24 @@
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
#
#
/home/user/monerod.service:
file.managed:
- source:
- salt://monero/monerod.service
- makedirs: True
- user: user
- group: user
- mode: 644
/rw/config/rc.local:
file.append:
- text: |
cp /home/user/monerod.service /lib/systemd/system
systemctl start monerod.service
/rw/usrlocal/etc/qubes-rpc/user.monerod:
file.append:
- text: socat STDIO TCP:localhost:18081
- makedirs: True

5
monero/configure.top Normal file
View File

@ -0,0 +1,5 @@
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
base:
monerod-ws:
- monero.configure

View File

@ -0,0 +1,8 @@
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
#
#
/rw/config/rc.local:
file.append:
- text: |
socat TCP-LISTEN:18081,fork,bind=127.0.0.1 EXEC:"qrexec-client-vm monerod-ws user.monerod"

View File

@ -0,0 +1,5 @@
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
base:
monero-wallet-ws:
- monero.configure_wallet