mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
a1842b95db
Germany from 2025 requires invoice with digital embeds, that are provided by the zugferd plugin.
49 lines
955 B
Nix
49 lines
955 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
name = "pretix";
|
|
meta.maintainers = with lib.maintainers; [ hexa ];
|
|
|
|
nodes = {
|
|
pretix = {
|
|
networking.extraHosts = ''
|
|
127.0.0.1 tickets.local
|
|
'';
|
|
|
|
services.pretix = {
|
|
enable = true;
|
|
nginx.domain = "tickets.local";
|
|
plugins = with pkgs.pretix.plugins; [
|
|
passbook
|
|
pages
|
|
zugferd
|
|
];
|
|
settings = {
|
|
pretix = {
|
|
instance_name = "NixOS Test";
|
|
url = "http://tickets.local";
|
|
};
|
|
mail.from = "hello@tickets.local";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
start_all()
|
|
|
|
pretix.wait_for_unit("pretix-web.service")
|
|
pretix.wait_for_unit("pretix-worker.service")
|
|
|
|
pretix.wait_until_succeeds("curl -q --fail http://tickets.local")
|
|
|
|
pretix.succeed("pretix-manage --help")
|
|
|
|
pretix.log(pretix.succeed("systemd-analyze security pretix-web.service"))
|
|
'';
|
|
}
|