nixos-config/machines/hiroshi/configuration.nix

54 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2024-05-18 15:48:01 +02:00
# SPDX-FileCopyrightText: 2024 Simon Bruder <simon@sbruder.de>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
2024-08-28 15:20:34 +02:00
{ pkgs, ... }:
2024-05-18 15:48:01 +02:00
{
imports = [
./hardware-configuration.nix
../../modules
2024-08-22 23:12:58 +02:00
./services/bang-evaluator.nix
./services/languagetool.nix
2024-08-28 22:15:07 +02:00
./services/li7y.nix
2024-10-12 12:31:45 +02:00
./services/password-hash-self-service.nix
2024-05-18 15:48:01 +02:00
];
sbruder = {
full = false;
2024-08-22 16:13:13 +02:00
restic = {
enable = true;
backups.system.enable = true;
};
2024-05-18 15:48:01 +02:00
wireguard.home.enable = true;
infovhost.enable = true;
nginx = {
hardening.enable = true;
proxyv4.enable = true;
};
2024-05-18 15:48:01 +02:00
};
networking.hostName = "hiroshi";
system.stateVersion = "24.05";
networking.firewall.allowedTCPPorts = [ 80 443 ];
2024-08-28 15:20:34 +02:00
services.postgresql = {
enable = true;
package = pkgs.postgresql_16;
};
services.postgresqlBackup = {
enable = true;
startAt = [ ]; # triggered by restic system backup
location = "/var/lib/postgresql-backup";
compression = "none";
};
systemd.services.restic-backups-system = {
after = [ "postgresqlBackup.service" ];
wants = [ "postgresqlBackup.service" ];
};
2024-05-18 15:48:01 +02:00
}