flake-utils-plus
nix-bundle
Our great sponsors
flake-utils-plus | nix-bundle | |
---|---|---|
19 | 8 | |
443 | 593 | |
- | - | |
4.9 | 1.0 | |
20 days ago | 2 months ago | |
Nix | Nix | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
flake-utils-plus
-
[Question] When using flakes, can I remove all channels?
You don't need channels to use nix-shell or nix-env. You can generate the Nix path and registry from your flake inputs. flake-utils-plus makes this easy with nix.generateRegistryFromInputs and nix.generateNixPathFromInputs.
-
How do I deploy a configuration to a machine with an existing hardware-configuration.nix?
Use flake-utils-plus to easily define multiple systems in flake.nix.and then use the --target-host flag of nixos-rebuild to deploy it remotely.
-
Have a shell command in configuration.nix that runs on nixos-rebuild
If you're trying to handle multiple systems with one config a flake is a significantly better option. I would personally recommend looking at flake-utils-plus and specifically this example config.
- Nix Flakes
-
Best way to manage multiple home manager configs for both NixOS and non-NixOS systems using flakes?
I looked at some past threads / examples and saw people recommend flake-utils-plus, but after reading the examples I don't understand how I would get home-manager on Darwin or Ubuntu.
-
Nix: Taming Unix with Functional Programming
Depending on your specific needs, the channelsConfig (modify arguments passed to Nixpkgs) and overlay tooling in flake-utils-plus may be adequate: https://github.com/gytis-ivaskevicius/flake-utils-plus/tree/...
-
What to do...
For flakes you don't have to set up everything manually there are helper libraries, I use flake-utils-plus.
-
How shall I install a package not found at https://search.nixos.org/packages?
Converting to flakes is not that hard if you use a good library. The documentation is other people's configs, really.
-
I made a thing you can load in Nix repl to get variables from your NixOS configuration
Neat! I've been using flake-utils-plus's implementation until now. https://github.com/gytis-ivaskevicius/flake-utils-plus/blob/master/lib/repl.nix
-
How to use a patched nixpkgs locally?
I use flake-utils-plus based configuration to apply patches on top of nixpkgs where overlays don't suffice.
nix-bundle
-
Our Fastest, Most Beautiful Release Ever: Thunderbird 115 “Supernova” Is Here
I admit that there is an element of, "but I chose an obscure and challenging linux variant, waaah why isn't it supported" here, but (a) there's currently no flatpak and (b) when, for goodness sakes, will major linux projects begin packaging for Nix/NixOS as a matter of course?
It's not hard, and the benefits go far outside merely supporting Nix, as e.g. a flake.nix file would allow this project to generate docker images, and appImage images, as basically afterthoughts. (See e.g. https://github.com/matthewbauer/nix-bundle.)
Nix flake support would also provide a perfectly reproducible build environment, which can help clarify dependencies, and thus help the project build achieve idempotence, but I'll save the full shill for some github issue.
In fact, I'm inclined to roll up my shirtsleeves and help make this real.
-
Container runtime as a static binary?
https://github.com/matthewbauer/nix-bundle perhaps?
-
Pushing/marketing the nix package manager as a Flatpak/Snap competitor?
Another way to approach this would be to advocate Nix as the build system for Flatpak or AppImage. Don't know what the status is of nix-bundle, but if it is possible to turn a Nix package into an AppImage with little extra work that would be ideal.
-
Flaptak (and Snap) is not the future
Nix itself is more focused on "distribute from this host with nix, to this other host with nix".
Though, here is e.g. https://github.com/matthewbauer/nix-bundle, which is supported as an experimental command in nix 2.4.
- Nix-bundle: package Nix attributes into single-file executables
-
Does Nix or NixOS address the problem raised by Linus Torvalds on package management?
I believe this tool does: https://github.com/matthewbauer/nix-bundle
-
NixOS 21.05 Released
Yes, it's extremely powerful once you truly understand Nix.
There are efforts to improve documentation, but it still is lacking (I think the biggest problem is that Nix is so big, not just the OS but it can be utilized as a build system).
Just with NixOS is not exactly clear how can you for example build your custom image.
I think https://nix.dev/ is approaching the documentation from the right direction.
There are also many pieces that people built that you need to find.
For example some things that I found accidentally:
* https://github.com/matthewbauer/nix-bundle
* https://github.com/cleverca22/not-os
Unfortunately those side projects often have even worse documentation.
What are some alternatives?
Home Manager using Nix - Manage a user environment using Nix [maintainer=@rycee]
runix
flake-utils - Pure Nix flake utility functions [maintainer=@zimbatm]
nixGL - A wrapper tool for nix OpenGL application [maintainer=@guibou]
nix-gui - Use NixOS Without Coding
poetry2nix - Convert poetry projects to nix automagically [maintainer=@adisbladis]
nixos-config - My NixOS configuration.
NixOS-docker - DEPRECATED! Dockerfiles to package Nix in a minimal docker container
nixos-shell - Spawns lightweight nixos vms in a shell
deploy-rs - A simple multi-profile Nix-flake deploy tool.
xdg-desktop-portal-gtk - Gtk implementation of xdg-desktop-portal