git clone https://garage44.eu/jeroen/midas.git.. /units/midas-hub.service
# midas hub: holds the workspace's state and answers for it on the WireGuard # address (/etc/midas/hub.conf). It answers nodes that run untrusted builds, so # it runs as the unprivileged `midas` user with a read-only view of the system. # Installed by `sudo midas hub setup`. [Unit] Description=midas hub (lease service, node events, LFS for nodes) After=network-online.target Wants=network-online.target [Service] User=midas Group=midas Environment=HOME=/srv/midas ExecStart=/usr/local/bin/midas hub serve Restart=always RestartSec=2 UMask=0002 NoNewPrivileges=yes ProtectSystem=strict ProtectHome=yes ReadWritePaths=/srv/midas PrivateTmp=yes PrivateDevices=yes ProtectKernelTunables=yes ProtectKernelModules=yes ProtectKernelLogs=yes ProtectControlGroups=yes ProtectClock=yes ProtectHostname=yes RestrictNamespaces=yes RestrictRealtime=yes RestrictSUIDSGID=yes LockPersonality=yes MemoryDenyWriteExecute=yes CapabilityBoundingSet= AmbientCapabilities= RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX SystemCallArchitectures=native SystemCallFilter=@system-service MemoryMax=512M TasksMax=256 [Install] WantedBy=multi-user.target