Cannot install home-manager

I cannot install home-manager. I try to switch with the default config, and it leads to an error.

Can you please help me understand what is going wrong?

$ nix-shell -p home-manager

$ home-manager init
Création de /home/pierre/.config/home-manager/home.nix ...
Création de /home/pierre/.config/home-manager/flake.nix ...

$ home-manager switch --show-trace
warning: creating lock file '"/home/pierre/.config/home-manager/flake.lock"':
• Added input 'home-manager':
    'github:nix-community/home-manager/04c27d743d069cad58f9707ee8e165c471b1c7cd?narHash=sha256-2lw%2BMnkrnygEyUl%2B3qZjnlCCJF/kJ57GUtYkAQPfLDA%3D' (2025-11-23)
• Added input 'home-manager/nixpkgs':
    follows 'nixpkgs'
• Added input 'nixpkgs':
    'github:nixos/nixpkgs/117cc7f94e8072499b0a7aa4c52084fa4e11cc9b?narHash=sha256-%2BhBiJ%2BkG5IoffUOdlANKFflTT5nO3FrrR2CA3178Y5s%3D' (2025-11-20)
error:
       … from call site
         at /nix/store/249vyfg7sifh5i9pzpl81k93lmd1mj93-source/flake.nix:20:37:
           19|     {
           20|       homeConfigurations."pierre" = home-manager.lib.homeManagerConfiguration {
             |                                     ^
           21|         inherit pkgs;

       … while calling 'homeManagerConfiguration'
         at /nix/store/bs2hhwhg1iy1xabi060qxb8mprg9ff03-source/lib/default.nix:6:5:
            5|   homeManagerConfiguration =
            6|     {
             |     ^
            7|       check ? true,

       … from call site
         at /nix/store/bs2hhwhg1iy1xabi060qxb8mprg9ff03-source/lib/default.nix:14:5:
           13|     }:
           14|     import ../modules {
             |     ^
           15|       inherit

       error: function 'anonymous lambda' called with unexpected argument 'minimal'
       at /nix/store/bs2hhwhg1iy1xabi060qxb8mprg9ff03-source/modules/default.nix:1:1:
            1| {
             | ^
            2|   configuration,

Report it to GitHub · Where software is built

You might have forgotten to put ... at the end of the function arguments i.e. {configuration, ...}:

They shouldn’t have to do anything manually to get the init working. (Assuming they didn’t edit the file.)

EDIT: I can repro this myself, 100% an hm bug. The error is coming from the hm flake too, not their own code.

4 Likes