nixos-config/machines/okarin/configuration.nix

58 lines
1.1 KiB
Nix
Raw Normal View History

2022-03-03 09:48:22 +01:00
{ config, lib, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
../../modules
2022-03-18 14:36:02 +01:00
./services/ankisyncd.nix
2022-03-18 16:22:23 +01:00
./services/gitea.nix
2022-03-17 15:59:53 +01:00
./services/hedgedoc.nix
2022-03-03 12:38:32 +01:00
./services/invidious
2022-03-03 12:19:31 +01:00
./services/libreddit.nix
2022-03-18 17:00:44 +01:00
./services/mumble.nix
2022-03-03 12:40:15 +01:00
./services/nitter.nix
./services/sbruder.xyz
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 12:51:15 +01:00
services.postgresqlBackup = {
enable = true;
startAt = [ ]; # triggered by restic system backup
location = "/var/lib/postgresql-backup";
};
systemd.services.restic-backups-system = {
after = [ "postgresqlBackup.service" ];
wants = [ "postgresqlBackup.service" ];
};
2022-03-03 09:48:22 +01:00
}