Reorganised nix code

Added firefox extension

Ports now not opened by default on portable devices.
This commit is contained in:
Jurn Wubben 2025-05-08 08:48:37 +02:00
parent 3b6d07e383
commit d3776c0551
8 changed files with 36 additions and 26 deletions

View file

@ -1,9 +1,15 @@
{config, ...}: {
{
config,
lib,
...
}: let
cfg = config.niksos.server;
in {
services.caddy = {
enable = config.niksos.server;
enable = cfg;
email = "jurnwubben@gmail.com";
enableReload = false;
};
networking.firewall.allowedTCPPorts = [80 443];
networking.firewall.allowedTCPPorts = lib.mkIf cfg [80 443];
}