{ lib, config, pkgs, ... }: let inherit (import ) kieran retiolumAddresses restic; in { imports = [ ./hardware-configuration.nix ./matomo.nix ]; services.restic.backups.niveum = { initialize = true; inherit (restic) repository; timerConfig = { OnCalendar = "daily"; RandomizedDelaySec = "1h"; }; passwordFile = toString ; paths = [ config.services.mysqlBackup.location ]; }; nix.nixPath = ["/var/src"]; networking = { firewall.allowedTCPPorts = [80 443]; hostName = "ful"; interfaces.enp0s3.useDHCP = true; retiolum = retiolumAddresses.ful; useDHCP = false; }; system.stateVersion = "21.11"; services.nginx = { enable = true; recommendedGzipSettings = true; recommendedOptimisation = true; recommendedProxySettings = true; recommendedTlsSettings = true; sslCiphers = "AES256+EECDH:AES256+EDH:!aNULL"; }; security.acme = { acceptTerms = true; defaults.email = kieran.email; }; users.users.root.passwordFile = toString ; environment.systemPackages = [pkgs.vim pkgs.git pkgs.tmux pkgs.python3]; # since 22.05 timeout fails? systemd.services.systemd-networkd-wait-online.enable = false; }