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,10 +1,14 @@
{ lib, config, ... }:
{
lib,
config,
inputs,
...
}:
let
cfg = config.my.servers.radarr;
setup = import ../factories/mkserver.nix { inherit lib config; };
in
{
options.my.servers.radarr = setup.mkOptions "radarr" "movies" 7878;
options.my.servers.radarr = inputs.self.lib.mkServerOptions "radarr" "movies" 7878 lib;
config = lib.mkIf cfg.enable {
services.radarr = {
inherit (cfg) enable;