-
-
Notifications
You must be signed in to change notification settings - Fork 13.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve documentation on how to generate NixOS ISO #21840
Comments
By specifying |
Thanks, that works. Outcome
|
If I understand correctly this works and can be closed? |
I think that manual section would deserve to get clearer. |
Back on the topic, I was attempting to build a minimal-cd with a new user with this file (configuration.nix):
I cloned the latest nixpkgs from github in a directory named
This fails with:
To me it seems it is not that simple |
The option is called "time.timeZone". No "service". See configuration.nix manual page. |
You are right of course… I f*** up my |
This change updates the instructions for building a NixOS ISO so that it's clear how to do it. Previously, the instructions stated to set NIXOS_CONFIG prior to running `nix-build`, yet the example provided by-passed NIXOS_CONFIG anyway. But the *really* important missing piece is the need for nixos/default.nix. See NixOS#21840. This change removes the NIXOS_CONFIG verbiage, and adds steps to clone nixpkgs and (most importantly) cd'ing into nixpkgs/nixos. That way, the reader may think: *Oh, so I need a default.nix and a configuration.nix. Ahhh, OK.* I purposely added the redundant default.nix argument.
This change updates the instructions for building a NixOS ISO so that it's clear how to do it. Previously, the instructions stated to set NIXOS_CONFIG prior to running `nix-build`, yet the example provided by-passed NIXOS_CONFIG anyway. But the *really* important missing piece is the need for nixos/default.nix. See #21840. This change removes the NIXOS_CONFIG verbiage, and adds steps to clone nixpkgs and (most importantly) cd'ing into nixpkgs/nixos. That way, the reader may think: *Oh, so I need a default.nix and a configuration.nix. Ahhh, OK.* I purposely added the redundant default.nix argument. (cherry picked from commit 4bee34d)
This change updates the instructions for building a NixOS ISO so that it's clear how to do it. Previously, the instructions stated to set NIXOS_CONFIG prior to running `nix-build`, yet the example provided by-passed NIXOS_CONFIG anyway. But the *really* important missing piece is the need for nixos/default.nix. See #21840. This change removes the NIXOS_CONFIG verbiage, and adds steps to clone nixpkgs and (most importantly) cd'ing into nixpkgs/nixos. That way, the reader may think: *Oh, so I need a default.nix and a configuration.nix. Ahhh, OK.* I purposely added the redundant default.nix argument.
Fixed in 4bee34d. |
This change updates the instructions for building a NixOS ISO so that it's clear how to do it. Previously, the instructions stated to set NIXOS_CONFIG prior to running `nix-build`, yet the example provided by-passed NIXOS_CONFIG anyway. But the *really* important missing piece is the need for nixos/default.nix. See NixOS#21840. This change removes the NIXOS_CONFIG verbiage, and adds steps to clone nixpkgs and (most importantly) cd'ing into nixpkgs/nixos. That way, the reader may think: *Oh, so I need a default.nix and a configuration.nix. Ahhh, OK.* I purposely added the redundant default.nix argument. (cherry picked from commit 4bee34d)
Issue description
Following steps in NixOS Manual chapter 31. failes.
Steps to reproduce
Approach setting NIXOS_CONFIG in read-only nixos/
Analysis: nixos/default.nix includes via ./lib/from-env.nix NIXOS_CONFIG and not nixos-config.
Approach without NIXOS_CONFIG in read-only nixos/
It seems, that write access is needed in current working directory.
Approach without NIXOS_CONFIG in writeable nixos/
It created an image, but without my custom configuration.nix.
Technical details
The text was updated successfully, but these errors were encountered: