a
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
pkgs,
|
||||
lib,
|
||||
fetchurl,
|
||||
myConfig,
|
||||
...
|
||||
}: let
|
||||
moondeckBuddyWrapped = pkgs.appimageTools.wrapType2 {
|
||||
@@ -63,7 +64,7 @@ in {
|
||||
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
User = "kenji"; # <--- IMPORTANT: User *must* have access to the display
|
||||
User = "${myConfig.essentials.Username}"; # <--- IMPORTANT: User *must* have access to the display
|
||||
Group = "users";
|
||||
|
||||
ExecStart = "${moondeckBuddyWrapped}/bin/moondeck-buddy";
|
||||
|
||||
@@ -29,8 +29,10 @@ in {
|
||||
capabilities = "cap_sys_admin+p";
|
||||
source = "${pkgs.sunshine}/bin/sunshine";
|
||||
};
|
||||
systemd.user.services.sunshine = {
|
||||
systemd.services.sunshine = {
|
||||
description = "Sunshine self-hosted game stream host for Moonlight";
|
||||
after = ["network-online.target" "multi-user.target"];
|
||||
wantedBy = ["multi-user.target"];
|
||||
startLimitBurst = 5;
|
||||
startLimitIntervalSec = 500;
|
||||
serviceConfig = {
|
||||
|
||||
Reference in New Issue
Block a user