dotfiles/.local/bin/vaulter

12 lines
546 B
Bash
Executable file

#! /usr/bin/sh
podman --transient-store run --rm -ti \
--env WAYLAND_DISPLAY \
--env XDG_RUNTIME_DIR=/tmp \
--hostname localhost \
--mount type=bind,source="${XDG_RUNTIME_DIR}"/"${WAYLAND_DISPLAY}",target=/tmp/"${WAYLAND_DISPLAY}" \
--mount type=bind,readonly=true,source="${HOME}"/.keys/vaults,target=/root/.age/key \
--mount type=bind,readonly=true,source="${HOME}"/.keys/vaults.pub,target=/root/.age/key.pub \
--mount type=bind,source="${HOME}"/Vaults,target=/root/Vaults \
--network none \
vaulter:latest