Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/how-to/nix-flakes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# How to configure NixOS-WSL with flakes

First add a `nixos-wsl` input, then add `nixos-wsl.nixosModules.default` to your nixos configuration.
First add a `nixos-wsl` input, then add `nixos-wsl.nixosModules.default` to your nixos configuration in `/etc/nixos/configuration.nix`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is for flakes, no? I'm moving from macOS to Windows and thus nix-darwin to NixOS-WSL, and this was very confusing. You can build from anywhere with flakes, although the wiki informs me that

By default, nixos-rebuild switch will read its configuration from /etc/nixos/flake.nix if it is present.

(TIL!)


Below is a minimal `flake.nix` for you to get started:

Expand Down
Loading