sunshine
This commit is contained in:
@@ -23,7 +23,30 @@ let
|
|||||||
applications.apps = with pkgs; [
|
applications.apps = with pkgs; [
|
||||||
steam
|
steam
|
||||||
];
|
];
|
||||||
|
settings = {
|
||||||
|
port = 47989;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
# systemd.user.services.sunshine = {
|
||||||
|
# description = "Self-hosted game stream host for Moonlight";
|
||||||
|
|
||||||
|
# wantedBy = [ "graphical-session.target" ];
|
||||||
|
# partOf = [ "graphical-session.target" ];
|
||||||
|
# wants = [ "graphical-session.target" ];
|
||||||
|
# after = [ "graphical-session.target" ];
|
||||||
|
|
||||||
|
# startLimitIntervalSec = 500;
|
||||||
|
# startLimitBurst = 5;
|
||||||
|
|
||||||
|
# environment.PATH = lib.mkForce null; # don't use default PATH, needed for tray icon menu links to work
|
||||||
|
|
||||||
|
# serviceConfig = {
|
||||||
|
# # only add configFile if an application or a setting other than the default port is set to allow configuration from web UI
|
||||||
|
# ExecStart = lib.mkForce "${config.security.wrapperDir}/sunshine port:47989";
|
||||||
|
# Restart = "on-failure";
|
||||||
|
# RestartSec = "5s";
|
||||||
|
# };
|
||||||
|
# };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ in
|
|||||||
./sops.nix
|
./sops.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
services.kmscon.enable = true;
|
services.kmscon = disabled;
|
||||||
|
|
||||||
powerManagement.cpuFreqGovernor = "powersave";
|
powerManagement.cpuFreqGovernor = "powersave";
|
||||||
|
|
||||||
@@ -32,7 +32,7 @@ in
|
|||||||
# # Desktop # #
|
# # Desktop # #
|
||||||
# ###################################################
|
# ###################################################
|
||||||
|
|
||||||
desktop.cosmic = disabled;
|
desktop.cosmic = enabled;
|
||||||
|
|
||||||
# ###################################################
|
# ###################################################
|
||||||
# # Development # #
|
# # Development # #
|
||||||
@@ -47,6 +47,8 @@ in
|
|||||||
includeContainers = true;
|
includeContainers = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
gaming.enable = true;
|
||||||
|
|
||||||
# ###################################################
|
# ###################################################
|
||||||
# # Hardware # #
|
# # Hardware # #
|
||||||
# ###################################################
|
# ###################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user