ryan4yin / nixos-and-flakes-book

:hammer_and_wrench: :heart: Want to know NixOS & Flakes in detail? Looking for a beginner-friendly tutorial? Then you've come to the right place! 想要学习使用 NixOS 与 Flakes 吗?在寻找一份新手友好的教程?那你可来对地方了!

Home Page:https://nixos-and-flakes.thiscute.world

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Managing System Packages Problem: `error: flake input attribute 'helix' is a thunk while a string, Boolean, or integer is expected`

mikelane opened this issue · comments

I've followed the directions here, but I'm getting the following error:

❯ sudo nixos-rebuild switch    
error:
       … while evaluating flake attribute 'helix'

         at /nix/store/fdhl5n49pbjlvmr8pqmgai03cpbsmj03-source/flake.nix:26:7:

           25|       # Helix editor, using version 23.05
           26|       helix.url = "github:helix-editor/helix/23.05";
             |       ^
           27|     };

       error: flake input attribute 'helix' is a thunk while a string, Boolean, or integer is expected
❯ 

Any idea how to fix this?

Oof, nevermind. I had put that into the inputs.home-manager instead of into the inputs in the flake.nix.

note: I did have to run sudo nixos-rebuild switch --flake /etc/nixos#nixos-test instead of just sudo nixos-rebuild switch to get helix to build. The docs leaves off the --flakes ... part.

note: I did have to run sudo nixos-rebuild switch --flake /etc/nixos#nixos-test instead of just sudo nixos-rebuild switch to get helix to build. The docs leaves off the --flakes ... part.

Added a description of this problem: baed453