seperate options and config
This commit is contained in:
parent
6584b8d356
commit
59e19e162a
12
modules/config.nix
Normal file
12
modules/config.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib; let
|
||||||
|
cfg = config.services.declarative-jellyfin;
|
||||||
|
in {
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
# TODO: implement
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,19 +1,3 @@
|
||||||
{
|
{...}: {
|
||||||
config,
|
imports = [./.];
|
||||||
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
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
8
modules/options.nix
Normal file
8
modules/options.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{lib, ...}:
|
||||||
|
with lib; {
|
||||||
|
options.services.declarative-jellyfin = {
|
||||||
|
enable = mkEnableOption "Jellyfin Service";
|
||||||
|
|
||||||
|
# TODO: implement options
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue