Basically I created simple wrapper function to create systemd services.

The function produces something like

{
  my-service={
    requires=["service1.service"];
  };
}

I want to customize it after with recursiveUpdate function, I want to merge
it with

{
  my-service={
    requires=["some-other.service"]
  };
}

I tried to avoid module stuff as in that case if I understand correctly I
need to prepare my description of systemd service on top of standard nix
systemd config structures which is probably big waste.

What do you think?

2016-10-11 14:31 GMT+01:00 Игорь Пашев <[email protected]>:

> Something like https://github.com/NixOS/nixpkgs/blob/master/lib/types.
> nix#L117 ?
>
> I don't know what you are dealing with, but probably you could
> delegate it to modules.
>
> 2016-10-11 16:00 GMT+03:00 Tomasz Czyż <[email protected]>:
> > Hi,
> >
> > I'm using recursiveUpdate to merge some attribute sets to construct
> > configurations.
> >
> > Does anyone know similar function but which also merges lists?
> > recursiveUpdate just overrides list from the lastest attribute instead of
> > merging (list it does for attributes).
> >
> > Tom
> >
> > _______________________________________________
> > nix-dev mailing list
> > [email protected]
> > http://lists.science.uu.nl/mailman/listinfo/nix-dev
> >
>



-- 
Tomasz Czyż
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to