{ pkgs, ... }: {

  imports = [
    ./hardware-configuration.nix
  ];
  zugvoegel =
    {
      services.bank-automation.enable = true;

      services.pretix = {
        enable = true;
        host = "tickets.zugvoegelfestival.org";
        instanceName = "Zugvoegel Ticketshop";
        pretixImage = "manulinger/zv-ticketing:pretix-custom-cliques";
        acmeMail = "webmaster@zugvoegelfestival.org";
        pretixDataPath = "/var/lib/pretix-data/data";
      };
      services.schwarmplaner = {
        enable = true;

        host = "schwarmplaner.zugvoegelfestival.org";
        apiHost = "api.zugvoegelfestival.org";
        frontend-image = "manulinger/zv-schwarmplaner:frontend";
        api-image = "manulinger/zv-schwarmplaner:api";
        nginx-image = "manulinger/zv-schwarmplaner:nginx";
        acmeMail = "webmaster@zugvoegelfestival.org";
      };
      services.backup = {
        enable = true;
        postgresDumpPath = "/var/lib/pretix-postgresql/dumps";
        backupDirs = [ "/var/lib/pretix-data/data" "/var/lib/pretix-postgresql/dumps" ]; # didn't know how to ref pretixDataPath
      };
    };

  sops.defaultSopsFile = ./secrets/secrets.yaml;

  # "Install" git
  environment.systemPackages = [ pkgs.git ];

  # Time zone and internationalisation
  time.timeZone = "Europe/Berlin";
  i18n.defaultLocale = "en_US.UTF-8";

  # Networking and SSH
  networking = {
    firewall.enable = true;
    firewall.interfaces.eth0.allowedTCPPorts = [ 80 443 ];
    hostName = "pretix-server-01";
    interfaces.eth0.useDHCP = true;
  };

  # User configuration
  users.users.root.openssh.authorizedKeys.keys = [
    "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILSJJs01RqXS6YE5Jf8LUJoJVBxFev3R18FWXJyLeYJE"
    "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIm11sPvZgi/QiLaB61Uil4bJzpoz0+AWH2CHH2QGiPm" # Netcup demo key github
    "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBGCmCMCN1BuYW2xCVTdXlNIILbJABp0MPgjc2rYMq9K" # Manu
  ];

  # Enable ssh
  services.openssh = {
    enable = true;
    settings.PasswordAuthentication = false;
    settings.PermitRootLogin = "yes";
  };

  system.stateVersion = "23.05";
}
