mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
nixos/tests/redis.nix: get rid of with lib
This commit is contained in:
parent
70e8a86b2b
commit
714180048b
@ -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 New Issue
Block a user