Skip to content

[Docs] More familiar flakes example#558

Open
rrueger wants to merge 1 commit intonix-community:masterfrom
rrueger:master
Open

[Docs] More familiar flakes example#558
rrueger wants to merge 1 commit intonix-community:masterfrom
rrueger:master

Conversation

@rrueger
Copy link

@rrueger rrueger commented Mar 5, 2026

...in particular the example now resembles the structure created by nixos-generate-config --flake more closely.

Indeed, there, the structure is

$ sudo nixos-generate-config --flake
$ ls -l /etc
flake.nix
configuration.nix
hardware-configuration.nix

and appears to be very common outsie the nixos-generate-config context.

...in particular the example now resembles the structure created by
`nixos-generate-config --flake` more closely.

Indeed, there, the structure is

```
$ sudo nixos-generate-config --flake
$ ls -l /etc
flake.nix
configuration.nix
hardware-configuration.nix
```

and appears to be very common outsie the `nixos-generate-config`
context.

Signed-off-by: Ryan Rueger <git@rueg.re>
## Configure NixOS (with Flakes)

Add this fragment to your `flake.nix`:
**Step 1a**. Modify `flake.nix`: Add `lanzaboot` input
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
**Step 1a**. Modify `flake.nix`: Add `lanzaboot` input
**Step 1a**. Modify `flake.nix`: Add `lanzaboote` input

nixosConfigurations = {
yourHost = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
**Step 1b**. Modify `flake.nix`: Add `lanzaboot` module to
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
**Step 1b**. Modify `flake.nix`: Add `lanzaboot` module to
**Step 1b**. Modify `flake.nix`: Add `lanzaboote` module to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants