Reorganised nix code
Added firefox extension Ports now not opened by default on portable devices.
This commit is contained in:
parent
243536ef43
commit
2bb3e9d699
8 changed files with 36 additions and 26 deletions
|
|
@ -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];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue