blog/how-to-convert-default-nixos-to-nixos-with-flakes #4
Replies: 3 comments
-
Just instealled nixos 23.05 this week and learning as I go. I created the flake.nix file and then tried adding that snippet to the top of my configuration.nix file and kept getting a syntax error. I thought maybe something else was wrong in my configuration.nix, so to check I removed that snippet and ran nixos-rebuild test and then I'm assuming it automatically recognized the flake.nix and started downloading and rebuilding? Perhaps something has changed since you wrote this article? (or I've done something wrong or accidentally did it right, I'm not sure) |
Beta Was this translation helpful? Give feedback.
-
I have been reading through a number of your articles and am really happy that you have taken the time to make such a throurough breakdown, that is more user friendly than most, and for this many thanks. However, i noticed that in this statement you neglect to state HOW one might go about switching the working directory. I think it is best to stay away from these small "just do this" excerpts, where no direction is given, particularly when the rest of the article is very verbose as regards how to do the things. Given this project seems to be aimed at simplifying nixos, either because they are new to nix, or linux, or both, wouldn't it make sense to have a full description of these types of things, rather than assume knowledge of what is meant, and how one might go about doing so? ( The above criticism sadly is one that finds itself meaningful within both the linux and bsd communities where such assumptions are rife...the RTFM approach, where man pages are not really reader friendly, nor non coder friendly documents.) In any case, Thanks again, and keep up the great work! |
Beta Was this translation helpful? Give feedback.
-
this doesn't work:
Where I have replacted
path '/etc/nixos/.logicLHR' does not contain a 'flake.nix', searching up
|
Beta Was this translation helpful? Give feedback.
-
blog/how-to-convert-default-nixos-to-nixos-with-flakes
Flakes are a recent addition to NixOS. This article explains how to convert stock NixOS installation into a flaked-out one, and explains why you should do it.
https://drakerossman.com/blog/how-to-convert-default-nixos-to-nixos-with-flakes
Beta Was this translation helpful? Give feedback.
All reactions