Skip to content
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

Merged
merged 4 commits into from
Jun 19, 2024

Conversation

fricklerhandwerk
Copy link
Contributor

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


```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
Copy link
Member

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
Copy link
Member

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
@Mic92
Copy link
Member

Mic92 commented Jun 19, 2024

@mergify queue

Copy link
Contributor

mergify bot commented Jun 19, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at ce18c08

@mergify mergify bot merged commit ce18c08 into nix-community:main Jun 19, 2024
24 checks passed
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