[Unit] Description=Unified all-in-one Monero miner After=network-online.target AssertFileNotEmpty=/etc/xmr-stak/config.txt [Service] Environment=GPU_FORCE_64BIT_PTR=1 Environment=GPU_MAX_HEAP_SIZE=100 Environment=GPU_USE_SYNC_OBJECTS=1 Environment=GPU_MAX_ALLOC_PERCENT=100 Environment=GPU_SINGLE_ALLOC_PERCENT=100 ExecStart=/usr/bin/xmr-stak --cpu /etc/xmr-stak/cpu.txt --amd /etc/xmr-stak/amd.txt --nvidia /etc/xmr-stak/nvidia.txt -c /etc/xmr-stak/config.txt -C /etc/xmr-stak/pools.txt DynamicUser=true Group=video CPUSchedulingPolicy=idle PrivateTmp=true ProtectHome=true ProtectSystem=strict NoNewPrivileges=true CapabilityBoundingSet= MemoryDenyWriteExecute=true ProtectKernelModules=true ProtectKernelTunables=true ProtectControlGroups=true RestrictRealtime=true RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX RestrictNamespaces=true PrivateUsers=true ConfigurationDirectory=xmr-stak [Install] WantedBy=multi-user.target