-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Home manager module error #724
Comments
I've had the same issue before. Did you add the overlay to your # flake.nix
{
description = "NixOS config";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-24.11";
hyprpanel = {
url = "github:Jas-SinghFSU/HyprPanel";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, ... }@inputs:
let
pkgs = import nixpkgs {
system = "x86_64-linux";
overlays = [
inputs.hyprpanel.overlay
];
config = {
allowUnfree = true;
};
};
in
{
nixosConfigurations = {
hostname = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs pkgs; };
modules = [
./hosts/hostname/configuration.nix
inputs.home-manager.nixosModules.default
];
};
};
};
}
# hyprpanel.nix
{ inputs, ... }:
{
imports = [ inputs.hyprpanel.homeManagerModules.hyprpanel ];
programs.hyprpanel = {
enable = true;
overwrite.enable = true;
};
} |
I'll check and see if I had the overlay or not and I'll report back later. |
@PedroMAdorno4 - I followed your example and it works well, but I get the following warning when running
Are you seeing the same? Any idea how to implement the suggested fix? Thanks! |
@cte I'm not sure because I don't have that warning, but you can try this perhaps: # flake.nix
{
description = "NixOS config";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-24.11";
hyprpanel = {
url = "github:Jas-SinghFSU/HyprPanel";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, ... }@inputs:
let
nixpkgsConfig = {
nixpkgs.overlays = [
inputs.hyprpanel.overlay
];
nixpkgs.config.allowUnfree = true;
};
in
{
nixosConfigurations = {
hostname = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [
./hosts/hostname/configuration.nix
inputs.home-manager.nixosModules.default
nixpkgsConfig
];
};
};
};
} |
I am having the same error with this config {inputs, ...}: {
imports = [inputs.hyprpanel.homeManagerModules.hyprpanel];
nixpkgs.overlays = [
inputs.hyprpanel.overlay
];
home-manager.users."ominit".programs.hyprpanel = {
enable = true;
systemd.enable = true;
hyprland.enable = true;
};
} This configuration is valid though (to prove that the overlay is working) {
inputs,
pkgs,
...
}: {
nixpkgs.overlays = [
inputs.hyprpanel.overlay
];
users.users."ominit".packages = with pkgs; [hyprpanel];
} |
After a bit of research, it appears that the issue I was having has to do with the home manager module requiring access to the lib that is extended by home-manager. This nix configuration works. {inputs, ...}: {
home-manager.users."ominit" = {
imports = [inputs.hyprpanel.homeManagerModules.hyprpanel];
programs.hyprpanel = {
enable = true;
overwrite.enable = true;
overlay.enable = true;
hyprland.enable = true;
settings = {
bar.launcher.autoDetectIcon = true;
};
};
};
} |
┃ … while evaluating an attribute
content
┃
┃ … while evaluating an attribute
hyprpanel
┃
┃ (stack trace truncated; use '--show-trace' to show the full, detailed trace)
┃
┃ error: attribute 'hm' missing
┃ at /nix/store/98gbnyh5kkv72dvxy2x0cjnaqpbqsdf5-source/nix/module.nix:633:23:
┃ 632| mkIf cfg.overwrite.enable {
┃ 633| hyprpanel = lib.hm.dag.entryBefore [ "writeBoundary" ] ''
┃ | ^
┃ 634| [[ -L "${path}" ]] || rm -f "${path}"
┃ Did you mean one of id or or?
The text was updated successfully, but these errors were encountered: