Skip to content

Instantly share code, notes, and snippets.

@dblandin
Last active May 22, 2019 19:35
Show Gist options
  • Save dblandin/68889a082802f0249900b816f739040a to your computer and use it in GitHub Desktop.
Save dblandin/68889a082802f0249900b816f739040a to your computer and use it in GitHub Desktop.
systemd-boot config
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options cryptdevice=UUID=c064a135-4764-4ca8-9144-460d0395fd98:archlvm root=/dev/mapper/archvg-root quiet rw resume=/dev/mapper/archvg-swap
default arch
timeout 5
editor 0
# /etc/systemd/system/docker.service.d/override.conf
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd --data-root=/home/devon/docker -H fd://
/etc/systemd/system/sleep.target.wants/[email protected]
[Unit]
Description=Lock X session using slock for user %i
Before=sleep.target
[Service]
User=%i
Environment=DISPLAY=:0
ExecStartPre=/usr/bin/xset dpms force suspend
ExecStart=/usr/bin/slock
[Install]
WantedBy=sleep.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment