Stable pkg undefined, but only on home-manager

When I put wemeet in home-manager’s stable packages, it says it’s an undefined variable. If I put it in the unstable packages, it installs fine. If I put it in environment.systemPackages, it also installs fine. It only says undefined variable when I put it in the stable packages list of my home-manager.

What could cause this?

These are my inputs:

  inputs = {
# cosmic stuff
    nixpkgs.follows = "nixos-cosmic/nixpkgs";
    nixos-cosmic.url = "github:lilyinstarlight/nixos-cosmic";

    kmonad = {
      url = "github:kmonad/kmonad?dir=nix";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";

    nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.11";

    sops-nix = {
      url = "github:Mic92/sops-nix";
      inputs.nixpkgs.follows = "nixpkgs";
    };

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

    firefox-addons = {
      url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    hyprland.url = "github:hyprwm/Hyprland";

    nix-colors.url = "github:misterio77/nix-colors";

    # Vanilla nixvim
    nixvim = {
      url = "github:nix-community/nixvim";
      inputs.nixpkgs.follows = "nixpkgs";
    };

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

  };

This is the complete configuration.

Your nixpkgs-stable input does say 23.11… That stopped being updated a long time ago.

And a quick check of that branch says…

$ nix eval github:nixos/nixpkgs/nixos-23.11\#wemeet.version
error: flake 'github:nixos/nixpkgs/nixos-23.11' does not provide attribute 'packages.x86_64-linux.wemeet.version', 'legacyPackages.x86_64-linux.wemeet.version' or 'wemeet.version'
       Did you mean gemget?

It did not have wemeet.

And your nixos configuration is clearly using unstable: https://gitee.com/darrishawks/nixfiles/blob/master/flake.nix#L130

2 Likes

It’s using unstable, but I have a part at the top of my home-manager packages list that follows the stable version. I guess I just misremembered what the most recent stable version was.

Changing that 23.11 to 25.05 fixed it, thank you.