-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Unable to enable flakes on target easily #307
Comments
when deploying with nixos-anywhere... ### Installing NixOS ###
Pseudo-terminal will not be allocated because stdin is not a terminal.
Warning: Permanently added '192.168.1.23' (ED25519) to the list of known hosts.
installing the boot loader...
setting up /etc...
Initializing machine ID from random generator.
Created "/boot/EFI".
Created "/boot/EFI/systemd".
Created "/boot/EFI/BOOT".
Created "/boot/loader".
Created "/boot/loader/entries".
Created "/boot/EFI/Linux".
Copied "/nix/store/y6mag03hj8b2hnlcj682xvp2aid7yg7y-systemd-255.4/lib/systemd/boot/efi/systemd-bootx64.efi" to "/boot/EFI/systemd/systemd-bootx64.efi".
Copied "/nix/store/y6mag03hj8b2hnlcj682xvp2aid7yg7y-systemd-255.4/lib/systemd/boot/efi/systemd-bootx64.efi" to "/boot/EFI/BOOT/BOOTX64.EFI".
! Mount point '/boot' which backs the random seed file is world accessible, which is a security hole! !
! Random seed file '/boot/loader/.#bootctlrandom-seedf977d9c7a4802c09' is world accessible, which is a security hole! !
Random seed file /boot/loader/random-seed successfully written (32 bytes).
Created EFI boot entry "Linux Boot Manager".
installation finished!
umount: /mnt/boot unmounted
umount: /mnt/data unmounted
umount: /mnt unmounted
Connection to 192.168.1.23 closed by remote host.
### Waiting for the machine to become reachable again ###
kex_exchange_identification: read: Connection reset by peer
Connection reset by 192.168.1.23 port 22
### Done! ### no errors... |
RESOLVED... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If there is a way to do this, it is not documented well.
If it is documented, where is it?
https://github.com/nix-community/nixos-anywhere/blob/main/docs/howtos/no-os.md
This talks about a bunch of manual steps...
Can we make an installer ISO that just does this? Of course we can, but there is nothing in the docs to tell us how.
It tells us how do do this WITHOUT flakes, but the installed system defaults to no flakes, which is very frustrating to have to manually go install and is very counter-intuitive if you are installing FROM flakes and the target I want should have flakes enabled.
Currently I have to do weird things like force an addition of a flake.nix into /etc/nixos as well as change the /etc/nix/nix.conf to be sure flakes are enabled and it feels strange to do so.
Most people are already using flakes (or at least they are encourage to do so...) and this undocumented way to turn on flakes is defeating the whole purpose of nixos-anywhere when you want flakes enabled everywhere. Optimally, it should be a simple setting that is well documented.
I am certainly willing to issue a pull request to do this, but my hacked technique is not optimal and if there is a better way I'd like to discuss it.
The text was updated successfully, but these errors were encountered: