a
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@
|
|||||||
monitors = [
|
monitors = [
|
||||||
# "DP-2, highres@165,0x1080,1,vrr,1"
|
# "DP-2, highres@165,0x1080,1,vrr,1"
|
||||||
# "DP-2, highres@180,0x1080,1,cm,hdr, sdrbrightness, 1.5, sdrsaturation, 0.98"
|
# "DP-2, highres@180,0x1080,1,cm,hdr, sdrbrightness, 1.5, sdrsaturation, 0.98"
|
||||||
"DP-1, highres@180,0x1080,1,bitdepth,10,cm,hdr,sdrbrightness,1.4,sdrsaturation,0.98,vrr,1"
|
"DP-1, highres@180,0x1080,1,bitdepth,10,cm,hdr,sdrbrightness,1.4,sdrsaturation,0.98"
|
||||||
"DP-2, highres@highrr,0x0,1"
|
"DP-2, highres@highrr,0x0,1"
|
||||||
"HDMI-A-1, 1920x1080@120, 20000x20000,1"
|
"HDMI-A-1, 1920x1080@120, 20000x20000,1"
|
||||||
# "HDMI-A-1, disabled"
|
# "HDMI-A-1, disabled"
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
fetchurl,
|
fetchurl,
|
||||||
|
myConfig,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
moondeckBuddyWrapped = pkgs.appimageTools.wrapType2 {
|
moondeckBuddyWrapped = pkgs.appimageTools.wrapType2 {
|
||||||
@@ -63,7 +64,7 @@ in {
|
|||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
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";
|
Group = "users";
|
||||||
|
|
||||||
ExecStart = "${moondeckBuddyWrapped}/bin/moondeck-buddy";
|
ExecStart = "${moondeckBuddyWrapped}/bin/moondeck-buddy";
|
||||||
|
|||||||
@@ -29,8 +29,10 @@ in {
|
|||||||
capabilities = "cap_sys_admin+p";
|
capabilities = "cap_sys_admin+p";
|
||||||
source = "${pkgs.sunshine}/bin/sunshine";
|
source = "${pkgs.sunshine}/bin/sunshine";
|
||||||
};
|
};
|
||||||
systemd.user.services.sunshine = {
|
systemd.services.sunshine = {
|
||||||
description = "Sunshine self-hosted game stream host for Moonlight";
|
description = "Sunshine self-hosted game stream host for Moonlight";
|
||||||
|
after = ["network-online.target" "multi-user.target"];
|
||||||
|
wantedBy = ["multi-user.target"];
|
||||||
startLimitBurst = 5;
|
startLimitBurst = 5;
|
||||||
startLimitIntervalSec = 500;
|
startLimitIntervalSec = 500;
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
|||||||
Reference in New Issue
Block a user