feat: Add sunshie module for Tytonidae

This commit is contained in:
ulic-youthlic 2025-11-11 18:11:23 +08:00
parent c7a0c8f7b6
commit 1d304a15bd
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
2 changed files with 24 additions and 0 deletions

View file

@ -50,6 +50,7 @@
obs.enable = true;
garage.enable = true;
# emacs.enable = true;
sunshine.enable = true;
};
};

View file

@ -0,0 +1,23 @@
{
config,
lib,
...
}: let
cfg = config.youthlic.programs.sunshine;
in {
options = {
youthlic.programs.sunshine = {
enable = lib.mkEnableOption "sunsine";
};
};
config = lib.mkIf cfg.enable {
services.sunshine = {
enable = true;
autoStart = true;
capSysAdmin = true;
# settings = {};
openFirewall = true;
# applications = {};
};
};
}