Skip to content

docs(nix-flakes): say where the configuration file is - #1029

Merged
mdaniels5757 merged 1 commit into
nix-community:mainfrom
kant2002:patch-1
Jun 5, 2026
Merged

docs(nix-flakes): say where the configuration file is#1029
mdaniels5757 merged 1 commit into
nix-community:mainfrom
kant2002:patch-1

Conversation

@kant2002

Copy link
Copy Markdown
Contributor

Specify the configuration file location for nixos-wsl. That's useful for complete novices which just get started, and maybe don't yet know where proper places to read about configuration located.

Other alternative is to provide link to official NixOS docs which explain how to edit configuration. But I didn't yet found this location

Specify the configuration file location for nixos-wsl. That's useful for complete novices which just get started, and maybe don't yet know where proper places to read about configuration located.

Other alternative is to provide link to official NixOS docs which explain how to edit configuration. But I didn't yet found this location
@mdaniels5757 mdaniels5757 changed the title Update nix-flakes.md with configuration path docs(flakes): say where the configuration file is Jun 5, 2026
@mdaniels5757 mdaniels5757 changed the title docs(flakes): say where the configuration file is docs(nix-flakes): say where the configuration file is Jun 5, 2026
@mdaniels5757 mdaniels5757 added the documentation Improvements or additions to documentation label Jun 5, 2026
@mdaniels5757
mdaniels5757 merged commit 2010e88 into nix-community:main Jun 5, 2026
37 checks passed
# 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!)

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

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants