nixos/tests/couchdb.nix: get rid of with lib

This commit is contained in:
Anderson Torres 2023-04-30 11:26:16 -03:00
parent 5ee5e4bb46
commit a137b4161d

View file

@ -1,9 +1,8 @@
let let
makeNode = couchpkg: user: passwd: makeNode = couchpkg: user: passwd:
{ pkgs, ... } : { pkgs, ... } :
{ environment.systemPackages = with pkgs; [ jq ]; { environment.systemPackages = [ pkgs.jq ];
services.couchdb.enable = true; services.couchdb.enable = true;
services.couchdb.package = couchpkg; services.couchdb.package = couchpkg;
services.couchdb.adminUser = user; services.couchdb.adminUser = user;
@ -12,16 +11,11 @@ let
testuser = "testadmin"; testuser = "testadmin";
testpass = "cowabunga"; testpass = "cowabunga";
testlogin = "${testuser}:${testpass}@"; testlogin = "${testuser}:${testpass}@";
in
in import ./make-test-python.nix ({ pkgs, lib, ...}: import ./make-test-python.nix ({ pkgs, lib, ...}:
with lib;
{ {
name = "couchdb"; name = "couchdb";
meta = with pkgs.lib.maintainers; { meta.maintainers = [ ];
maintainers = [ ];
};
nodes = { nodes = {
couchdb3 = makeNode pkgs.couchdb3 testuser testpass; couchdb3 = makeNode pkgs.couchdb3 testuser testpass;