flake-utils-plus
nix-update
Our great sponsors
flake-utils-plus | nix-update | |
---|---|---|
19 | 5 | |
433 | 363 | |
- | - | |
5.7 | 8.1 | |
5 months ago | 11 days ago | |
Nix | Python | |
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
-
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.
-
How to downgrade single package?
You can then use the input directly. I am using flake-utils-plus which has this nice overlay-builder:
nix-update
-
Accessing contents of non-flake repo input to a flake?
You should instead use the regular fetchGit, fetchFromGitHub etc. fetchers in fairly vanilla code, and yes, that often means dealing with checksums in some form. If you truly just want to yeet the latest revision into place no matter what it is, there are ways to automate that still, such as berberman/nvfetcher, or Mic92/nix-update.
-
Will you move from Packer to Lazy ?
Yes, however one downside is that, afaik, the inputs are downloaded eagerly, not lazily. Alternatively there are things like nix-update and nvfetcher.
-
How easy would it be to make Nix packages similar to -git packages of the AUR?
or https://github.com/Mic92/nix-update
-
Beat way to update an outdated package?
You can also use https://github.com/Mic92/nix-update with a nixpkgs git clone.
-
NixOS 21.05 Released
I run [nix-update](https://github.com/Mic92/nix-update/) to update stuff. If you want to package something new, first identify the programming language/buildsystem the project is using and than look for a similar project in nixpkgs.
What are some alternatives?
Home Manager using Nix - Manage a user environment using Nix [maintainer=@rycee]
flake-utils - Pure Nix flake utility functions [maintainer=@zimbatm]
nixGL - A wrapper tool for nix OpenGL application [maintainer=@guibou]
LazyVim - Neovim config for the lazy
poetry2nix - Convert poetry projects to nix automagically [maintainer=@adisbladis]
NixOS-docker - DEPRECATED! Dockerfiles to package Nix in a minimal docker container
deploy-rs - A simple multi-profile Nix-flake deploy tool.
nix-processmgmt - Experimental Nix-based process management framework
NUR - Nix User Repository: User contributed nix packages [maintainer=@Mic92]
digga - A flake utility library to craft shell-, home-, and hosts- environments.
nix-bundle - Bundle Nix derivations to run anywhere!
nixos-shell - Spawns lightweight nixos vms in a shell