-
Notifications
You must be signed in to change notification settings - Fork 5
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
Minimal nixos-config
with disko
#1
Conversation
Is this already deployed, or waiting to be deployed? |
Already deployed |
In that case, let's add to README the instructions for deployment. As a next step, we'll had this over to another person for doing deployments for their machine. |
qemu-guest module is common configuration for VMs (imp. for kexec) not-detected module is for non-free devices not detected by `nixos-generate-config` (might not be necessary in our case)
README.md
Outdated
| 3. | In `disk-config.nix`, set `disko.devices.disk.main.device = "/dev/<device-name>";` | | | ||
| 4. | | `nix run github:nix-community/nixos-anywhere -- --flake .#office root@<ip-address>` | | ||
|
||
**Disclaimer**: The `<ip-address>` might change in kexec mode or post-installation, in which case you will have to stop the `Step 4` and rerun with updated `<ip-address>`. |
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.
Can we clarify this further?
When you say stop the Step 4
, what is meant exactly? At what point (during the nix run ...
process) exactly should the user stop it with Ctrl+C? Or is it that they must wait for it to error out (in which case, there is no need to stop the nix run ...
process because it is already stopped), and then re-run it? If so, it would be useful to paste that error message here.
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.
Also how do we find out the new ip address? It is worth including that as well.
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.
(Disclaimer: I might be missing something, so we can also revisit these instructions after the actual install ....)
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.
At what point (during the nix run ... process) exactly should the user stop it with Ctrl+C?
When the ssh starts timing out. I will add that point
Could be because your instance might not support EFI firmware? is it possible to run this on the droplet instance: If that's the case, we can try by removing the EFI related lines from the configuration. It should not use EFI by default: https://search.nixos.org/options?channel=23.05&show=boot.loader.grub.efiSupport&from=0&size=50&sort=relevance&type=packages&query=efiSupport |
Digital ocean droplet instance wouldn't boot because of the absence of qemu-guest.nix module. After using this, it does boot up but fails to automatically detect networking configuration (this could be because it is a VM instance). Solutions like nixos-infect work by generating a |
WIP blog post: juspay/flakular.in#25