seperate options and config

This commit is contained in:
Sveske_Juice 2025-04-03 00:25:19 +02:00
parent 6584b8d356
commit 59e19e162a
3 changed files with 22 additions and 18 deletions

12
modules/config.nix Normal file
View file

@ -0,0 +1,12 @@
{
config,
lib,
...
}:
with lib; let
cfg = config.services.declarative-jellyfin;
in {
config = mkIf cfg.enable {
# TODO: implement
};
}

View file

@ -1,19 +1,3 @@
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.services.declarative-jellyfin;
in {
options.services.declarative-jellyfin = {
enable = mkEnableOption "Jellyfin Service";
# TODO: implement options
};
config = mkIf cfg.enable {
# TODO: implement
};
{...}: {
imports = [./.];
}

8
modules/options.nix Normal file
View file

@ -0,0 +1,8 @@
{lib, ...}:
with lib; {
options.services.declarative-jellyfin = {
enable = mkEnableOption "Jellyfin Service";
# TODO: implement options
};
}