Add configs for installing sunshine (server) and moonlight (client).

This commit is contained in:
Tom Alexander
2026-10-06 17:29:31 -04:00
parent 3f57dd72c7
commit 4cc1da46be
5 changed files with 79 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
{
config,
lib,
pkgs,
...
}:
{
imports = [ ];
options.me = {
moonlight.enable = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = "Whether we want to install moonlight.";
};
};
config = lib.mkIf (config.me.moonlight.enable && config.me.graphical) {
environment.systemPackages = with pkgs; [
moonlight-qt
];
};
}