{ config, lib, pkgs, ... }: { imports = [ ./utils/bento.nix ./utils/modules/sops.nix ./utils/modules/lego/lego.nix ./modules/mysql.nix ./modules/postfix.nix ./utils/modules/nginx.nix ./modules/bitwarden ./modules/authelia.nix ./modules/collabora.nix ./modules/nextcloud ./modules/rustdesk.nix ./modules/postgresql.nix ./modules/grafana/default.nix ./modules/loki.nix ./modules/victoriametrics.nix ./modules/blackbox-exporter.nix ./modules/updns.nix ./modules/atticd.nix ./utils/modules/autoupgrade.nix ./utils/modules/promtail ./utils/modules/borgbackup.nix ./utils/modules/ldap-auth.nix ./modules/set-nix-channel.nix # Automatically manage nix-channel from /var/bento/channel ./hardware-configuration.nix # ./modules/a11ywatch.nix ./modules/web/typo3.nix ./modules/web/stack.nix ./sites # comment out for first build, so ssh key and config is present # otherwise the build will fail ./modules/sa-core.nix ./modules/scana11y.nix ]; nixpkgs.overlays = [ (import ./overlays/packages.nix) ]; nixpkgs.config.permittedInsecurePackages = [ "openssl-1.1.1v" "openssl-1.1.1w" ]; environment.systemPackages = with pkgs; [ vim davfs2 screen ucommon php php83 ]; time.timeZone = "Europe/Vienna"; services.logind.extraConfig = "RuntimeDirectorySize=2G"; sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; sops.defaultSopsFile = ./secrets.yaml; nix.gc = { automatic = true; options = "--delete-older-than 60d"; }; boot.tmp.cleanOnBoot = true; zramSwap.enable = true; networking.hostName = "web-arm"; networking.domain = "cloonar.com"; services.openssh.enable = true; users.users.root.openssh.authorizedKeys.keys = [ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDN/2SAFm50kraB1fepAizox/QRXxB7WbqVbH+5OPalDT47VIJGNKOKhixQoqhABHxEoLxdf/C83wxlCVlPV9poLfDgVkA3Lyt5r3tSFQ6QjjOJAgchWamMsxxyGBedhKvhiEzcr/Lxytnoz3kjDG8fqQJwEpdqMmJoMUfyL2Rqp16u+FQ7d5aJtwO8EUqovhMaNO7rggjPpV/uMOg+tBxxmscliN7DLuP4EMTA/FwXVzcFNbOx3K9BdpMRAaSJt4SWcJO2cS2KHA5n/H+PQI7nz5KN3Yr/upJN5fROhi/SHvK39QOx12Pv7FCuWlc+oR68vLaoCKYhnkl3DnCfc7A7" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIRQuPqH5fdX3KEw7DXzWEdO3AlUn1oSmtJtHB71ICoH Generated By Termius" ]; programs.ssh = { knownHosts = { "git.cloonar.com" = { publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDlUj7eEfS/4+z/3IhFhOTXAfpGEpNv6UWuYSL5OAhus"; }; }; }; # backups borgbackup.repo = "u149513-sub8@u149513-sub8.your-backup.de:borg"; networking.firewall = { enable = true; allowedTCPPorts = [ 22 80 443 ]; }; system.stateVersion = "22.05"; }