Hi Rickard, All I can think of currently is that you could create a new config variable using filterAttrs to keep only the information you need. Not sure if this solves your question though as I'm not aware if you can use another variable in your scenario.
Kind regards, Erik On Wed, Sep 7, 2016 at 12:35 AM Rickard Nilsson <rickard.nils...@telia.com> wrote: > Is it possible to unset an attrsOf option? Say I import a module that > looks like this: > > options = { > myattrs = mkOption { > type = types.attrsOf ... > default = {}; > }; > } > > config = { > myattrs = { > a = ... > b = ... > }; > }; > > And then I want to remove the "a" attribute in the importing config: > > config = { > myattrs.a = mkForce ... > } > > Is that possible in any way? > > > / Rickard > _______________________________________________ > nix-dev mailing list > nix-dev@lists.science.uu.nl > http://lists.science.uu.nl/mailman/listinfo/nix-dev >
_______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev