Add garden and updates.
This commit is contained in:
parent
67823cbed6
commit
dab0af910b
14 changed files with 216 additions and 24 deletions
|
@ -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
6
roles/fail2ban.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
services.fail2ban = {
|
||||
enable = true;
|
||||
ignoreIP = [ "192.168.0.0/16" ];
|
||||
};
|
||||
}
|
6
roles/syncthing.nix
Normal file
6
roles/syncthing.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
openDefaultPorts = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue