10 signKeyPaths = [(pkgs.writeText "cache-key" "cache.example.com-1:9FhO0w+7HjZrhvmzT1VlAZw4OSAlFGTgC24Seg3tmPl4gZBdwZClzTTHr9cVzJpwsRSYLTu7hEAQe3ljy92CWg==")];
11 settings.priority = 35;
14 networking.firewall.allowedTCPPorts = [ 5000 ];
15 system.extraDependencies = [ pkgs.emptyFile ];
17 # check that extra-allowed-users is effective for harmonia
18 nix.settings.allowed-users = [];
23 substituters = lib.mkForce [ "http://harmonia:5000" ];
24 trusted-public-keys = lib.mkForce [ "cache.example.com-1:eIGQXcGQpc00x6/XFcyacLEUmC07u4RAEHt5Y8vdglo=" ];
29 testScript = { nodes, ... }: ''
32 harmonia.wait_for_unit("harmonia.service")
34 client01.wait_until_succeeds("curl -f http://harmonia:5000/nix-cache-info | grep '${toString nodes.harmonia.services.harmonia.settings.priority}' >&2")
35 client01.succeed("curl -f http://harmonia:5000/version | grep '${nodes.harmonia.services.harmonia.package.version}' >&2")
37 client01.succeed("cat /etc/nix/nix.conf >&2")
38 client01.succeed("nix-store --realise ${pkgs.emptyFile} --store /root/other-store")