nixos/tests/redis.nix: get rid of with lib
This commit is contained in:
parent
70e8a86b2b
commit
714180048b
1 changed files with 4 additions and 6 deletions
|
@ -1,19 +1,17 @@
|
|||
import ./make-test-python.nix ({ pkgs, ... }:
|
||||
import ./make-test-python.nix ({ pkgs, lib, ... }:
|
||||
{
|
||||
name = "redis";
|
||||
meta = with pkgs.lib.maintainers; {
|
||||
maintainers = [ flokli ];
|
||||
};
|
||||
meta.maintainers = with lib.maintainers; [ flokli ];
|
||||
|
||||
nodes = {
|
||||
machine =
|
||||
{ pkgs, lib, ... }: with lib;
|
||||
{ pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
services.redis.servers."".enable = true;
|
||||
services.redis.servers."test".enable = true;
|
||||
|
||||
users.users = listToAttrs (map (suffix: nameValuePair "member${suffix}" {
|
||||
users.users = lib.listToAttrs (map (suffix: lib.nameValuePair "member${suffix}" {
|
||||
createHome = false;
|
||||
description = "A member of the redis${suffix} group";
|
||||
isNormalUser = true;
|
||||
|
|
Loading…
Reference in a new issue