Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243{ lib, ... }:
let port = 3142; defaultPort = 8083;in{ name = "calibre-web"; meta.maintainers = with lib.maintainers; [ pborzenkov ];
nodes = { customized = { pkgs, ... }: { services.calibre-web = { enable = true; listen.port = port; options = { calibreLibrary = "/tmp/books"; reverseProxyAuth = { enable = true; header = "X-User"; }; }; }; environment.systemPackages = [ pkgs.calibre ]; }; }; testScript = '' start_all()
customized.succeed( "mkdir /tmp/books && calibredb --library-path /tmp/books add -e --title test-book" ) customized.succeed("systemctl restart calibre-web") customized.wait_for_unit("calibre-web.service") customized.wait_for_open_port(${toString port}) customized.succeed( "curl --fail -H X-User:admin 'http://localhost:${toString port}' | grep test-book" ) '';}