Add garden and updates.

This commit is contained in:
Nolan Darilek 2024-12-23 11:20:27 -06:00
parent 67823cbed6
commit dab0af910b
14 changed files with 216 additions and 24 deletions

View file

@ -1,10 +1,20 @@
{ config, pkgs, ... }:
{
services.caddy = {
enable = true;
package = pkgs.callPackage ../pkgs/caddy.nix { };
email = "nolan@thewordnerd.info";
};
networking.firewall.allowedTCPPorts = [
80
443
];
age.secrets.tsAuthKey = {
file = ../secrets/ts_auth_key.age;
owner = config.services.caddy.user;
group = config.services.caddy.group;
mode = "600";
};
systemd.services.caddy.serviceConfig.EnvironmentFile = config.age.secrets.tsAuthKey.path;
}

6
roles/fail2ban.nix Normal file
View file

@ -0,0 +1,6 @@
{
services.fail2ban = {
enable = true;
ignoreIP = [ "192.168.0.0/16" ];
};
}

6
roles/syncthing.nix Normal file
View file

@ -0,0 +1,6 @@
{
services.syncthing = {
enable = true;
openDefaultPorts = true;
};
}