-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
docs: simplify non-flakes instructions #335
Conversation
cc95747
to
34d8bdb
Compare
|
||
```bash | ||
nix-build -I nixos-config=/etc/nixos/configuration.nix -E '(import <nixpkgs/nixos> {}).config.system.build.diskoNoDeps' | ||
curl https://raw.githubusercontent.com/nix-community/disko-templates/main/single-disk-ext4/disko-config.nix > ./disko-config.nix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We actually don't provide any guarantees for examples. They can change at any point in time and are often not even examples that one should deploy but rather show what can be configured for a given filesystem. We have templates now that should be downloaded instead.
## 4. Write a NixOS configuration | ||
|
||
```nix | ||
# configuration.nix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now compatible with nixos-rebuild. Otherwise it will be very confusing if we call something configuration.nix
that is actually not compatible with it.
* add nixos-generate-config as the hardware otherwise might not boot * change configuration.nix so that it can be actually used with nixos-rebuild * refactor nixos-anywhere into a single line for convenience
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at ce18c08 |
I had a hard time figuring out what to do, and all that's required is actually this.
most importantly, using the
noDeps
variant doesn't work because, obviously, it doesn't ship the dependencies