-
-
Notifications
You must be signed in to change notification settings - Fork 54
nix support #33
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
nix support #33
Conversation
|
By easy, I mean that people who use nix would not have to install, they could simply run: |
|
I should also note that I changed the shebang at the top of the shell script to |
|
Cool idea. If I understand correctly, the installation on the hard drive/USB memory will be launched with a command such as: Can a specific version/tag be installed this way? |
|
yes with |
|
@Mexit I believe this is in a mergeable state now. I'm happy to maintain the nix support, just send me a ping when needed. Let me know if there is anything else you would like added. The only thing I can think of might be nix specific instructions in the readme, but any nix user who sees the flake.nix should know how to use anyway. |
I think it is worth adding this information. Preferably in the Installation section. Will this project be visible somewhere after these changes are added? I mean, for example, the NixOS repository? |
|
I have added a Nix/NixOS section to the install instructions! In answer to your question, no, this project will not be visible in the Nix packages repository, so won't show up in the package listings. I've added support for Nix's decentralized package model called flakes. You can think of it like how some programming languages allow you to source packages from Github instead of their package repos. That being said, I do have plans to add this package to the nixpkgs repository which is where all the official nix package definitions are stored. This would make it show up in the package listings. I've been discussing it starting at this comment in an issue about ventoy. Seems like the consensus is that I would need to override the binaries with the nix versions for the nix community to consider it "secure". Once the pull request process is done, I would be the maintainer of MultiOS-USB in the nixpkgs repository. All I would need from you to keep it updated is a ping every so often if you release a new version or add a new binary. Also, just an FYI, nix (the package manager) can be installed on almost any Linux distribution. |
Will these flake files need to be updated?
That won't work. You would have to compile everything directly from the source code because GRUB contains patches. |
Probably not very often unless the dependencies/build process change. Feel free to ping me on any related issues though, happy to maintain.
Think the EFI files are fine if I put them under a toggle, so it would just be grub and mountiso that would be a problem. I'll look into it. Thanks for merging! |
Makes it easy for people who use the nix package manger to run this package.