Attribute 'lib' missing` error in mako.nix, but I never enabled mako (flakes + home-manager)


Hi,
I’m setting up my NixOS system using flakes, with home-manager integrated via the nixosConfigurations module. When running:

sudo nixos-rebuild switch --flake .#nixos

I get the following error:

error: attribute 'lib' missing
at /nix/store/.../modules/services/mako.nix:40:17:
40|   iniAtomType = iniFormat.lib.types.atom;
             ^

This points to programs.mako, but I never explicitly enabled mako — not in home.nix, not in configuration.nix. I ran grep -r "mako" on my configs — nothing came up. So it looks like something is enabling it implicitly, probably via a module I import.

The trace (--show-trace) shows mako.nix, but doesn’t clearly point to where it’s being enabled. I’m using the nixos-24.11 channel and a fresh version of home-manager.


Questions:

  • What could be enabling mako implicitly?
  • Why is iniFormat.lib missing — is there a misuse of pkgs.formats.ini?
  • How can I safely disable mako if it’s being included automatically?

flake.nix

{
  description = "tlater's dotfiles";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
    nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";

    home-manager = {
      url = "github:nix-community/home-manager";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    yazi-plugins = {
      url = "github:yazi-rs/plugins";
      flake = false;
    };

  };
  

outputs =
    { self, nixpkgs, home-manager, ... }@inputs:
    {
      nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
          system = "x86_64-linux";
          modules = [
             { nixpkgs.config.allowUnfree = true; }

            # основная конфигурация
            ./nix/configuration.nix

            # Интеграция home-manager
            home-manager.nixosModules.home-manager

            {
              home-manager.useGlobalPkgs = true;
              home-manager.useUserPackages = true;
              home-manager.users.yakatze = import ./home/home.nix;
              home-manager.extraSpecialArgs = { inherit inputs; };
            }
          
          ];
      };


    };

}


this thread might be helpful in chasing down the problem: Use services.mako.settings instead? - #8 by sheeeng

fix(home-manager/mako): use settings instead of extraConfig by MisileLab · Pull Request #553 · catppuccin/nix · GitHub was merged so you may just need to update whatever revision of catpuccin–nix you’re using - if that’s the cause here.