feat: Add sunshie module for Tytonidae
This commit is contained in:
parent
c7a0c8f7b6
commit
1d304a15bd
2 changed files with 24 additions and 0 deletions
|
|
@ -50,6 +50,7 @@
|
||||||
obs.enable = true;
|
obs.enable = true;
|
||||||
garage.enable = true;
|
garage.enable = true;
|
||||||
# emacs.enable = true;
|
# emacs.enable = true;
|
||||||
|
sunshine.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
23
nixos/modules/programs/sunshine.nix
Normal file
23
nixos/modules/programs/sunshine.nix
Normal 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 = {};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue