-
Notifications
You must be signed in to change notification settings - Fork 68
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
NixOS compatibility tracking #221
Comments
I'd like to add onto this issue - I found this piece about the non-compatibility of NixOS on the bedrocklinux website, and I'll try to respond to them with the best of my ability.
(1) Too bad for Nix. I am not versed in what limitations the brl fetch environment provides and cannot specifically provide an answer for this. (2) This is true. Note that the daemon can be invoked by the (3) NixOS won't care, but will overwrite them next time you rebuild. We can think of it like this: your configuration.nix files are generators for other files out there. For example, here's a line from my config:
This will in turn write to the appriopriate files in Now, we can change the hostname to "NotYourSuperCoolLaptop" by manually editing these files, or invoking the Of course, the whole point of NixOS is to give you configuration abilities, and it is possible to change these files, if we write these changes in our NixOS configuration ourselves. We may just have to write a configuration that contains changes that Bedrock Linux needs as a module and add it to the system - best-case scenario we get it on the nixpkgs itself. Interested to see what solutions turn up in this thread. |
I've been researching this topic for a while in my spare time recently. I've been able to install I've also managed to kinda enable this, but kinda is a good word and I don't know what happened. Maybe this is because I've limited NixOS config, to use I've also tried hijacking NixOS, for fun because why not. It indeed created Seems like it also doesn't add things from Proof (I hope) that this was done on NixOS: Also, But I've ran outta space on my VM. So I couldn't purse that further. But I'm gonna take a look there once I free up some space. I'll keep it in mind. I've also been experimenting with just |
If hijack script have produced empty complete-hijack-install maybe🤷 we can use such thing like modifying .bashrc/hijack-script to catch where is it fails? |
NixOS requires systemd. Which is an interesting problem for Bedrock, what if you don't want systemd on your machine but want to use NixOS? I remember a while back, a reason I didn't want to switch over to NixOS from Gentoo was because of the init system. Most people in the NixOS community are the "embrace systemd" type. Anyways, iirc Nix needs systemd and doesn't have an alternate init system option as of yet. |
NixOS indeed requires systemd, but Nix, as a package manager itself, doesn't. It works perfectly fine on Artix, Alpine and on Bedrock where Artix or Alpine are init stratums. Even flakes work perfectly fine. Yes, modyfing hijack-script sounds like a good idea. Without that, I assume the problem is due to weirdness of NixOS... Anyway, 'fetchability' of NixOS also needs to be done, but seems like we have a good start there. I wonder how this will end when it comes to Also. In the meantime of my 'research', I've found two promising projects. And the second one, which claims, quoting: I don't know if it's important, but those things might help us later. Or at least we can take an inspiration from them. They both sound promising. Everything here sounds promising, I'll continue my research and I'll keep you updated. |
Any updates on this? I hear some discussion on getting openrc to work on nixos however at the moment I think we should be concerned with getting Nixos to work with Bedrock first, its immutable nature while being one of its benifits may be a disadvantage when trying to get bedrock to work, you would possibly need to build brl in accordance with nix store by implimenting it in configuration.nix or a flake |
Sadly, no NixOS-specific progress in quite some time. My frustratingly limited resources have been primarily focused on getting 0.8.0 out, which due to unexpected personal life constraints is taking much longer than I had expected. I don't plan on personally pursing NixOS support until after 0.8.0 is out the door, and I haven't had much success with contributors for things like this. Various planned features of 0.8.x may help with minor roadmaps for NixOS compatibility. For example, the 0.8.x roadmap includes (initially limited) cross-stratum services support which could be used to have another distro's init kick off the Nix daemon service at boot time. Or for another, 0.8.x is planned to support having the Bedrock-specific file locations be relocatable, which could allow experimentation with putting the Bedrock-specific files in a location NixOS doesn't track quite as closely and is content to allow mutation. I also expect 0.8.0's eventual release to gather attention and collect more potential contributors which could assist here. |
The exact dilemma I'm going through right now. If bedrock ever allows openrc with NixOS, I will take it and maybe never look back |
Known goals:
brl fetch
supportKnown issues:
brl
norpmm
is present, but the/bedrock
directory was created, with an empty, unwritable file calledcomplete-hijack-install
The text was updated successfully, but these errors were encountered: