I use Arch btw

you are viewing a single comment's thread
view the rest of the comments
[–] 14 points 3 months ago* (2 children)
humanConfiguration."user".gender  = {
  female.enable = true;
  male.enable = lib.mkForce false; 
};
  • source
  • hideshow 2 child comments
  • [–] 22 points 3 months ago (1 child)
    humanConfiguration."user".gender  = {
      enable = false;
      #female.enable = true;
      #male.enable = lib.mkForce false; 
    };
    
  • source
  • parent
  • hideshow 1 child comment
  • [–] 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