nixos-config/machines/okarin/configuration.nix

40 lines
666 B
Nix
Raw Normal View History

2022-03-03 09:48:22 +01:00
{ config, lib, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
../../modules
2022-03-19 10:17:25 +01:00
./services/torrent.nix
2022-03-03 09:48:22 +01:00
];
sbruder = {
nginx.hardening.enable = true;
2022-03-19 10:17:25 +01:00
restic.system = {
enable = true;
extraExcludes = [
"/var/lib/qbittorrent/download"
];
};
2022-03-03 09:48:22 +01:00
wireguard.home.enable = true;
};
networking.hostName = "okarin";
system.stateVersion = "21.11";
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
};
networking.firewall.allowedTCPPorts = [
80
443
];
2022-03-03 09:48:22 +01:00
}