I have an issue with installing hyprpanel by it guide using flakes and also using home-manager standalone method.
It throws error:
error:
… while evaluating the attribute 'activationPackage'
at /nix/store/pq7c3y6dvg9r4hfgib087q4lk4hsm58s-home-manager-source/modules/default.nix:62:7:
61|
62| activationPackage = module.config.home.activationPackage;
| ^
63|
… while evaluating a branch condition
at /nix/store/01635adignbizr4nyz5lpawkrxn4n4g8-source/lib/lists.nix:142:18:
141| len = length list;
142| fold' = n: if n == len then nul else op (elemAt list n) (fold' (n + 1));
| ^
143| in
… while evaluating the module argument `inputs' in "/home/kppcn/.config/home-manager/packages/rice/hyprpanel.nix":
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: infinite recursion encountered
at /nix/store/01635adignbizr4nyz5lpawkrxn4n4g8-source/lib/modules.nix:652:66:
651| extraArgs = mapAttrs (
652| name: _: addErrorContext (context name) (args.${name} or config._module.args.${name})
| ^
653| ) (functionArgs f);
And i cant understand why… My home-manager config is in /home/kppcn/.config/home-manager/home.nix and it imports my nix file that must install hyprpanel
# *.nix
{ inputs, ... }:
{
imports = [ inputs.hyprpanel.homeManagerModules.hyprpanel ];
programs.hyprpanel = {
# Enable the module.
# Default: false
enable = true;
# Automatically restart HyprPanel with systemd.
# Useful when updating your config so that you
# don't need to manually restart it.
# Default: false
systemd.enable = true;
# Add '/nix/store/.../hyprpanel' to your
# Hyprland config 'exec-once'.
# Default: false
hyprland.enable = true;
# Fix the overwrite issue with HyprPanel.
# See below for more information.
# Default: false
overwrite.enable = true;
# Import a theme from './themes/*.json'.
# Default: ""
theme = "gruvbox_split";
# Override the final config with an arbitrary set.
# Useful for overriding colors in your selected theme.
# Default: {}
override = {
theme.bar.menus.text = "#123ABC";
};
# Configure bar layouts for monitors.
# See 'https://hyprpanel.com/configuration/panel.html'.
# Default: null
layout = {
"bar.layouts" = {
"0" = {
left = [ "dashboard" "workspaces" ];
middle = [ "media" ];
right = [ "volume" "systray" "notifications" ];
};
};
};
# Configure and theme almost all options from the GUI.
# Options that require '{}' or '[]' are not yet implemented,
# except for the layout above.
# See 'https://hyprpanel.com/configuration/settings.html'.
# Default: <same as gui>
settings = {
bar.launcher.autoDetectIcon = true;
bar.workspaces.show_icons = true;
menus.clock = {
time = {
military = true;
hideSeconds = true;
};
weather.unit = "metric";
};
menus.dashboard.directories.enabled = false;
menus.dashboard.stats.enable_gpu = true;
theme.bar.transparent = true;
theme.font = {
name = "CaskaydiaCove NF";
size = "16px";
};
};
};
}
And also my flake.nix is /etc/nixos/ :
{
inputs = {
hyprpanel = {
url = "github:Jas-SinghFSU/HyprPanel";
inputs.nixpkgs.follows = "nixpkgs";
};
spicetify-nix = {
url = "github:Gerg-L/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
stylix.url = "github:nix-community/stylix/release-25.05";
home-manager = {
url = "github:nix-community/home-manager/release-25.05";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs @
{ spicetify-nix, nixpkgs, stylix, home-manager, hyprpanel, ... }: let
system = "x86_64-linux";
in {
homeConfigurations."kppcn@nixkppcn" = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs {
inherit system;
overlays = [
inputs.hyprpanel.overlay
];
};
extraSpecialArgs = {
inherit system;
hyprpanel = inputs.hyprpanel;
};
};
nixosConfigurations.nixkppcn = nixpkgs.lib.nixosSystem {
modules = [
./configuration.nix
stylix.nixosModules.stylix
home-manager.nixosModules.home-manager
];
};
};
}
I cant understand why this happens.