This commit is contained in:
kenji
2025-07-23 17:51:25 -05:00
parent 173f9a08ca
commit 1bb5ea283f
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -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";
+3 -1
View File
@@ -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 = {