[GH-ISSUE #88] home-manager module doesn't work #5675

Closed
opened 2026-05-23 01:52:23 +01:00 by JakeStanger · 0 comments
Owner

Originally created by @JakeStanger on GitHub (Mar 28, 2023).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/88

Discussed in https://github.com/JakeStanger/ironbar/discussions/87

Originally posted by riley-martin March 28, 2023
I am trying to use the ironbar home-manager module, but I get this error:

error: attempt to call something which is not a function but a set

       at /nix/store/654cn2v25aifhgqrf4q2rj8fk1brncz5-source/flake.nix:106:31:

          105|       cfg = config.programs.ironbar;
          106|       defaultIronbarPackage = self.packages.${pkgs.hostPlatform.system}.default [];
             |                               ^
          107|       jsonFormat = pkgs.formats.json {};
(use '--show-trace' to show detailed location information)

I am using nixpkgs unstable. Here are (I think) all the relevant parts of my config.

flake.nix:

{
  description = "Home Manager configuration";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
    home-manager = {
      url = "github:nix-community/home-manager";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    ironbar = {
      url = "github:JakeStanger/ironbar";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    hyprland.url = "github:hyprwm/Hyprland";
  };

  outputs = { nixpkgs, home-manager, hyprland, ironbar, ...} @ inputs:
    let
      system = "x86_64-linux";
      pkgs = nixpkgs.legacyPackages.${system};
    in {
      homeConfigurations.riley = home-manager.lib.homeManagerConfiguration {
        inherit pkgs;
        modules = [
          hyprland.homeManagerModules.default
          ironbar.homeManagerModules.default
          ./home.nix
        ];
      };
    };
}

And in ironbar.nix, which I import from home.nix I have this:

{ ... }: {
  programs.ironbar = {
    enable = true;
    config = {};
    style = "";
}

I am pretty new to nix; apologies if I missed something really obvious.

Originally created by @JakeStanger on GitHub (Mar 28, 2023). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/88 ### Discussed in https://github.com/JakeStanger/ironbar/discussions/87 <div type='discussions-op-text'> <sup>Originally posted by **riley-martin** March 28, 2023</sup> I am trying to use the ironbar home-manager module, but I get this error: ``` error: attempt to call something which is not a function but a set at /nix/store/654cn2v25aifhgqrf4q2rj8fk1brncz5-source/flake.nix:106:31: 105| cfg = config.programs.ironbar; 106| defaultIronbarPackage = self.packages.${pkgs.hostPlatform.system}.default []; | ^ 107| jsonFormat = pkgs.formats.json {}; (use '--show-trace' to show detailed location information) ``` I am using nixpkgs unstable. Here are (I think) all the relevant parts of my config. `flake.nix`: ```nix { description = "Home Manager configuration"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; ironbar = { url = "github:JakeStanger/ironbar"; inputs.nixpkgs.follows = "nixpkgs"; }; hyprland.url = "github:hyprwm/Hyprland"; }; outputs = { nixpkgs, home-manager, hyprland, ironbar, ...} @ inputs: let system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages.${system}; in { homeConfigurations.riley = home-manager.lib.homeManagerConfiguration { inherit pkgs; modules = [ hyprland.homeManagerModules.default ironbar.homeManagerModules.default ./home.nix ]; }; }; } ``` And in `ironbar.nix`, which I import from `home.nix` I have this: ```nix { ... }: { programs.ironbar = { enable = true; config = {}; style = ""; } ``` I am pretty new to nix; apologies if I missed something really obvious.</div>
JakeStanger 2026-05-23 01:52:23 +01:00
  • closed this issue
  • added the
    T:Bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/ironbar#5675
No description provided.