error: attribute 'inputs' missing
at .../lib/modules.nix:621:66:
fulError
error:
… while evaluating the attribute 'activationPackage'
at /home/yakatze/.nix-defexpr/channels/home-manager/modules/default.nix:1:1164:
… while evaluating a branch condition
at /nix/store/sz6hhgiffszv5v700si1857l4ssd4w5b-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 option `assertions':
… while evaluating definitions from `/home/yakatze/.nix-defexpr/channels/home-manager/modules/programs/yazi.nix':
… while evaluating the option `programs.yazi.plugins':
… while evaluating definitions from `/home/yakatze/.config/home-manager/modules/app/yazi.nix':
… while evaluating the module argument `inputs' in "/home/yakatze/.config/home-manager/modules/app/yazi.nix":
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: attribute 'inputs' missing
at /nix/store/sz6hhgiffszv5v700si1857l4ssd4w5b-source/lib/modules.nix:621:66:
620| extraArgs = mapAttrs ( 621| name: _: addErrorContext (context name) (args.${name} or config._module.args.${name})
| ^
622| ) (functionArgs f);
But I didn’t really like this approach because I had to manually copy all the files from home into ~/.config/home-manager every time to make it work. It felt inconvenient and not flexible.
So I decided to try a different approach and created a user.nix module at nix/home/modules/user.nix:
But the problem is that I can’t run sudo nixos-rebuild switch --flake or home-manager switch --flake normally. Even after removing the aliases, the issue persists, so I guess the problem isn’t with the aliases.
Does anyone know what might be going wrong? Or how I can debug this?
home-manager switch --flake github:nobbz/nixos-config or home-manager switch --flake ., depending on whether I want to apply the canonical config as currently stored on GH or the one I am developing locally.
You are still missing the flake reference, so HM can’t know where it is expected to look. Your error even tells you so… Missing parameter according to 3 different translator softwares…
If you use russian locale, I assume you know how to read those messages without a translator
error: flake 'path:/etc/nixos' does not provide attribute 'packages.x86_64-linux.homeConfigurations', 'legacyPackages.x86_64-linux.homeConfigurations' or 'homeConfigurations'
error: flake 'path:/etc/nixos' does not provide attribute 'packages.x86_64-linux.homeConfigurations', 'legacyPackages.x86_64-linux.homeConfigurations' or 'homeConfigurations'
error: flake 'path:/etc/nixos' does not provide attribute 'packages.x86_64-linux.homeConfigurations', 'legacyPackages.x86_64-linux.homeConfigurations' or 'homeConfigurations'
error: flake 'path:/etc/nixos' does not provide attribute 'packages.x86_64-linux.homeConfigurations."yakatze".activationPackage', 'legacyPackages.x86_64-linux.homeConfigurations."yakatze".activationPackage' or 'homeConfigurations."yakatze".activationPackage'
It seems like this happens because I’m using Home Manager in standalone mode (via homeManagerConfiguration), while lib.hm is only available when using Home Manager as a NixOS system module (nixosModules.home-manager).
I don’t want to switch to using Home Manager as a system module, so I’d really appreciate any advice on how to use mako.nix (or other modules that depend on lib.hm) in standalone mode.
Maybe there’s a way to manually pass or define the needed parts of lib.hm?