fix(docs): Fix tutorial steps on failure#268
Conversation
Issues encountered when doing the tutorial and solution found to fix it Last command is building the config with the modifications
| let | ||
| sources = import ./npins; # (1) | ||
| with-inputs = sources.with-inputs sources { }; # (2) | ||
| with-inputs = import sources.with-inputs; # (2) |
There was a problem hiding this comment.
Keep it as import sources.with-inputs sources {}
So that the last line is just with-inputs outputs.
If you want reference to with-inputs README about what that {} is (for input overriding -- that is why I want all of it in same line)
| }).config.flake; # (6) | ||
| in | ||
| with-inputs outputs; # (7) | ||
| with-inputs sources {} outputs # (7) |
|
Hey @ulfbayte , Thank you so much for following the guide and making the corrections, I like your PR. Left just a comment about with-inputs usage. Fix that and we are good to merge. |
|
Hello, |
|
Note : I had to remove the .flake for the the # (6) part of default.nix because it give me [ulfbayte@cyrix:~/bugreport]$ nixos-rebuild build --file . -A flake.nixosConfigurations.igloo
building the system configuration...
error: attribute 'flake' in selection path 'flake.nixosConfigurations.igloo.config.system.build.toplevel' not found
Command 'nix-build . --attr flake.nixosConfigurations.igloo.config.system.build.toplevel' returned non-zero exit status 1.Also .flake was not used in this example : https://github.com/vic/import-tree#dendritic-nix-non-flakes-stable-nix |
it pretty much depends on what default.nix exposes, yeah when writing stuff I tend to forget things, thanks for helping fixing them. |
Fix We have to use }).config.flake; # (6) if the final build command is nixos-rebuild build --file . -A nixosConfigurations.igloo
|
Awesome! thank you very much, this will help a lot of people! |
Hello,
Issues encountered when doing the tutorial and solution I found to fix it
https://den.oeiuwq.com/guides/from-zero-to-den/
Each modification is related to a different error message encountered during the tutorial.
sources for fix :
Last command is building the config without error.