feat(nixosModules/desktop): enable sunshine
This commit is contained in:
parent
1a45001401
commit
70814354aa
3 changed files with 21 additions and 6 deletions
|
@ -24,6 +24,7 @@
|
|||
enableSpotifyd = lib.mkEnableOption "";
|
||||
enableSteam = lib.mkEnableOption "";
|
||||
enableVR = lib.mkEnableOption "";
|
||||
enableSunshine = lib.mkEnableOption "";
|
||||
};
|
||||
|
||||
config = lib.mkMerge [
|
||||
|
@ -40,5 +41,16 @@
|
|||
};
|
||||
environment.systemPackages = [ pkgs.android-tools ];
|
||||
})
|
||||
(lib.mkIf config.desktop.enableSunshine {
|
||||
services.sunshine = {
|
||||
enable = true;
|
||||
capSysAdmin = true;
|
||||
openFirewall = true;
|
||||
settings = {
|
||||
sunshine_name = config.system.hostname;
|
||||
};
|
||||
applications = { };
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue