Read standard XDG directories via systemd
This commit is contained in:
parent
6ed89375e3
commit
3ab55ee128
4 changed files with 6 additions and 6 deletions
|
|
@ -1,3 +1,3 @@
|
||||||
#! /usr/bin/sh
|
#! /usr/bin/sh
|
||||||
|
|
||||||
sudo cp "${HOME}"/.config/setup/sway.desktop /usr/share/wayland-sessions/
|
sudo cp "$(systemd-path user-configuration)"/setup/sway.desktop /usr/share/wayland-sessions/
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#! /usr/bin/sh
|
#! /usr/bin/sh
|
||||||
|
|
||||||
sudo cp "${HOME}"/.config/setup/sources.list.d/tor.sources /etc/apt/sources.list.d/
|
sudo cp "$(systemd-path user-configuration)"/setup/sources.list.d/tor.sources /etc/apt/sources.list.d/
|
||||||
sudo chmod 644 /etc/apt/sources.list.d/tor.sources
|
sudo chmod 644 /etc/apt/sources.list.d/tor.sources
|
||||||
|
|
||||||
outfile=/usr/share/keyrings/deb.torproject.org-keyring.gpg
|
outfile=/usr/share/keyrings/deb.torproject.org-keyring.gpg
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#! /usr/bin/sh
|
#! /usr/bin/sh
|
||||||
|
|
||||||
projdir="${HOME}/Projects"
|
projdir="$(systemd-path user)"/Projects
|
||||||
mkdir -p "${projdir}"
|
mkdir -p "${projdir}"
|
||||||
rm -rf "${projdir}/lilypond"
|
rm -rf "${projdir}/lilypond"
|
||||||
cd "${projdir}" || exit
|
cd "${projdir}" || exit
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ podman --transient-store run --rm -ti \
|
||||||
--env XDG_RUNTIME_DIR=/tmp \
|
--env XDG_RUNTIME_DIR=/tmp \
|
||||||
--hostname localhost \
|
--hostname localhost \
|
||||||
--mount type=bind,source="${XDG_RUNTIME_DIR}"/"${WAYLAND_DISPLAY}",target=/tmp/"${WAYLAND_DISPLAY}" \
|
--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="$(systemd-path user)"/.keys/vaults,target=/root/.age/key \
|
||||||
--mount type=bind,readonly=true,source="${HOME}"/.keys/vaults.pub,target=/root/.age/key.pub \
|
--mount type=bind,readonly=true,source="$(systemd-path user)"/.keys/vaults.pub,target=/root/.age/key.pub \
|
||||||
--mount type=bind,source="${HOME}"/Vaults,target=/root/Vaults \
|
--mount type=bind,source="$(systemd-path user)"/Vaults,target=/root/Vaults \
|
||||||
--network none \
|
--network none \
|
||||||
vaulter:latest
|
vaulter:latest
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue