formatting and dont creat enable option

This commit is contained in:
Osman Faruk Bayram 2025-02-07 15:56:09 +03:00
parent ac433255a4
commit b17a9f9754
2 changed files with 5 additions and 11 deletions

View file

@ -24,7 +24,6 @@
enableJellyfin = true;
};
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;

View file

@ -4,27 +4,22 @@
lib,
...
}: {
options = {
myModules.enableJellyfin = {
enable = lib.mkOption {
myModules.enableJellyfin = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable Jellyfin media server";
};
};
};
config = lib.mkMerge [
(lib.mkIf config.myModules.enableJellyfin {
services.jellyfin = {
enable = true;
openFirewall = true;
};
networking.firewall.allowedTCPPorts = [8096];
})
];
}