This commit is contained in:
muon 2025-03-18 20:05:25 +00:00
parent dee1430ee5
commit bb2d16410c
3 changed files with 27 additions and 0 deletions

View file

@ -20,5 +20,6 @@
./cal.nix
./chat.nix
./dash.nix
./nvr.nix
];
}

View file

@ -0,0 +1,25 @@
{ pkgs, lib, config, ... }:
let
cfg = config.mods.server.nvr;
# port = config.mods.server.nginx.ports.vault;
in with lib; {
options.mods.server = {
nvr = {
enable = mkEnableOption {
default = false;
description = "enables zoneminder server";
};
};
};
config = mkIf cfg.enable {
networking.firewall.allowedTCPPorts = [ 8095 ];
services.zoneminder = {
enable = true;
database = {
createLocally = true;
username = "zoneminder";
};
};
};
}