Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pinpox committed Feb 6, 2025
1 parent 31f797c commit 481b89f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nixos/doc/manual/installation/installing.chapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,9 @@ Use the following commands:
[](#ch-options). A minimal example is shown in
[Example: NixOS Configuration](#ex-config).

This command accepts an optional `--flake` option, to also generate a
`flake.nix` file, if you want to set up a flake-based configuration.

The command `nixos-generate-config` can generate an initial
configuration file for you:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
.Op Fl -force
.Op Fl -root Ar root
.Op Fl -dir Ar dir
.Op Fl -flake Ar flake
.
.
.
Expand Down Expand Up @@ -70,6 +71,10 @@ Overwrite
.Pa /etc/nixos/configuration.nix
if it already exists.
.
.It Fl -flake
Also generate
.Pa /etc/nixos/flake.nix
.
.It Fl -no-filesystems
Omit everything concerning file systems and swap devices from the hardware configuration.
.
Expand Down

0 comments on commit 481b89f

Please sign in to comment.