flake parts, migrated modules

This commit is contained in:
Danilo Reyes
2025-10-12 13:41:48 -06:00
parent 6497dede6f
commit 6f97b24115
41 changed files with 359 additions and 166 deletions

View File

@@ -1,14 +1,14 @@
{
lib,
inputs,
config,
...
}:
let
cfg = config.my.servers.plex;
setup = import ../factories/mkserver.nix { inherit lib config; };
in
{
options.my.servers.plex = setup.mkOptions "plex" "plex" 32400;
options.my.servers.plex = inputs.self.lib.mkServerOptions "plex" "plex" 32400 lib;
config.services = lib.mkIf (cfg.enable && config.my.secureHost) {
plex = {
inherit (cfg) enable;