diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index b5eebfe281..ede582698f 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -8468,10 +8468,25 @@ crontab: language_id: 705203557 desktop: type: data + filenames: + - "systemd-system.conf" + - "systemd-user.conf" + - "logind.conf" + - "journald.conf" + - "journal-remote.conf" + - "journal-upload.conf" + - "systemd-sleep.conf" + - "timesyncd.conf" extensions: - ".desktop" - ".desktop.in" + - ".automount" + - ".mount" + - ".netdev" + - ".nspawn" - ".service" + - ".socket" + - ".timer" tm_scope: source.desktop ace_mode: text language_id: 412 diff --git a/samples/desktop/btrfs-trim.timer b/samples/desktop/btrfs-trim.timer new file mode 100644 index 0000000000..2320c3d662 --- /dev/null +++ b/samples/desktop/btrfs-trim.timer @@ -0,0 +1,7 @@ +[Unit] +Description=Discard unused blocks on a mounted filesystem +Documentation=man:fstrim + +[Timer] +OnCalendar=monthly +AccuracySec=1h diff --git a/samples/desktop/nyancat.socket b/samples/desktop/nyancat.socket new file mode 100644 index 0000000000..dca7fa55ff --- /dev/null +++ b/samples/desktop/nyancat.socket @@ -0,0 +1,9 @@ +[Unit] +Description=Nyan.cat socket + +[Socket] +ListenStream=23 +Accept=true + +[Install] +WantedBy=sockets.target diff --git a/samples/desktop/run-dwarffs.automount b/samples/desktop/run-dwarffs.automount new file mode 100644 index 0000000000..5f21a857cb --- /dev/null +++ b/samples/desktop/run-dwarffs.automount @@ -0,0 +1,8 @@ +[Unit] +Description=Debug Symbols File System +Documentation=https://github.com/edolstra/dwarffs +Before=sysinit.target + +[Automount] +Where=/run/dwarffs +TimeoutIdleSec=30 diff --git a/samples/desktop/signal-cli-socket.socket b/samples/desktop/signal-cli-socket.socket new file mode 100644 index 0000000000..7cedc4ee5d --- /dev/null +++ b/samples/desktop/signal-cli-socket.socket @@ -0,0 +1,7 @@ +[Unit] +Description=Send secure messages to Signal clients + +[Socket] +ListenStream=%t/signal-cli/socket +SocketUser=root +# Add yourself to the signal-cli group to talk with the service diff --git a/samples/desktop/tmp.mount b/samples/desktop/tmp.mount new file mode 100644 index 0000000000..98f23d6444 --- /dev/null +++ b/samples/desktop/tmp.mount @@ -0,0 +1,29 @@ +# /etc/systemd/system/tmp.mount +# SPDX-License-Identifier: LGPL-2.1+ +# +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +[Unit] +Description=Temporary Directory (/tmp) +Documentation=https://systemd.io/TEMPORARY_DIRECTORIES +Documentation=man:file-hierarchy(7) +Documentation=https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems +ConditionPathIsSymbolicLink=!/tmp +DefaultDependencies=no +Conflicts=umount.target +Before=local-fs.target umount.target middlewared.service +After=swap.target + +[Mount] +What=tmpfs +Where=/tmp +Type=tmpfs +Options=mode=1777,strictatime,nosuid,noexec,nodev + +[Install] +WantedBy=local-fs.target diff --git a/samples/desktop/tor-browser.nspawn b/samples/desktop/tor-browser.nspawn new file mode 100644 index 0000000000..034ac4f2fc --- /dev/null +++ b/samples/desktop/tor-browser.nspawn @@ -0,0 +1,7 @@ +[Exec] +DropCapability=all +Environment=DISPLAY=:0 +Hostname=kilgore-trout +NoNewPrivileges=true +Parameters=./start-tor-browser --log /dev/stdout +PrivateUsers=true diff --git a/samples/desktop/wireguard.netdev b/samples/desktop/wireguard.netdev new file mode 100644 index 0000000000..f24299c632 --- /dev/null +++ b/samples/desktop/wireguard.netdev @@ -0,0 +1,7 @@ +[NetDev] +Name=wg0 +Kind=wireguard +Description=WireGuard tunnel + +[WireGuard] +ListenPort=51820