mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 05:05:29 +03:00
nixos/invidious: remove machine.config in test
This commit is contained in:
parent
4d3a22cf1c
commit
a1f7e3d10e
1 changed files with 4 additions and 4 deletions
|
@ -20,7 +20,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
|
||||||
};
|
};
|
||||||
networking.firewall.allowedTCPPorts = [ config.services.postgresql.settings.port ];
|
networking.firewall.allowedTCPPorts = [ config.services.postgresql.settings.port ];
|
||||||
};
|
};
|
||||||
machine = { config, lib, pkgs, ... }: {
|
machine = { lib, pkgs, ... }: {
|
||||||
services.invidious = {
|
services.invidious = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
@ -81,11 +81,11 @@ import ./make-test-python.nix ({ pkgs, ... }: {
|
||||||
|
|
||||||
|
|
||||||
def activate_specialisation(name: str):
|
def activate_specialisation(name: str):
|
||||||
machine.succeed(f"${nodes.machine.config.system.build.toplevel}/specialisation/{name}/bin/switch-to-configuration test >&2")
|
machine.succeed(f"${nodes.machine.system.build.toplevel}/specialisation/{name}/bin/switch-to-configuration test >&2")
|
||||||
|
|
||||||
|
|
||||||
url = "http://localhost:${toString nodes.machine.config.services.invidious.port}"
|
url = "http://localhost:${toString nodes.machine.services.invidious.port}"
|
||||||
port = ${toString nodes.machine.config.services.invidious.port}
|
port = ${toString nodes.machine.services.invidious.port}
|
||||||
|
|
||||||
# start postgres vm now
|
# start postgres vm now
|
||||||
postgres_tcp.start()
|
postgres_tcp.start()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue