default module template
This commit is contained in:
parent
b9298c19b1
commit
408c816b10
|
@ -20,7 +20,7 @@
|
|||
pkgs.alejandra
|
||||
);
|
||||
nixosModules = rec {
|
||||
declarative-jellyfin = import ./module.nix;
|
||||
declarative-jellyfin = import ./modules;
|
||||
default = declarative-jellyfin;
|
||||
};
|
||||
nixosModule = self.nixosModules.default; # compatiblilty
|
||||
|
|
19
modules/default.nix
Normal file
19
modules/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
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
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue