I use Arch btw

you are viewing a single comment's thread
view the rest of the comments
[–] 20 points 3 months ago*
{ lib, options, ... }:
let
  names = lib.filter
    (name: lib.hasAttrByPath [ name "enable" ] options.gender)
    (lib.attrNames options.gender);
in
{
  config.gender = lib.genAttrs names (_: {
    enable = true;
  });
}

That way I know my configuration will always be comprehensive even when nixpkgs releases a new gender

  • source
  • parent