deploy-rs
flake-utils-plus
Our great sponsors
deploy-rs | flake-utils-plus | |
---|---|---|
15 | 19 | |
1,151 | 443 | |
7.7% | - | |
6.2 | 4.9 | |
7 days ago | 20 days ago | |
Rust | Nix | |
GNU General Public License v3.0 or later | 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.
deploy-rs
- 20 Years of Nix
-
Building a highly optimized home environment with Nix
deploy-rs
-
Nix: Taming Unix with Functional Programming
Deploy-rs is a great alternative. It works as wrapper on top of flakes, local (optionally, cross-) building and copying closures to target machine with activation:
https://github.com/serokell/deploy-rs
-
How do you manage your updates?
The SSH key I made for this uses yubikey authentication, and every time this opens a SSH connection it will ask for the key. There's some options you can add so multiple SSH sessions can use a single connection, but the current version isn't really working well with them (see e.g. https://github.com/serokell/deploy-rs/issues/106)
-
What's a good service for hosting a personal NixOS server?
I haven't really been in the market for something like this in a long while, but NixOS solved a lot of my headaches when it comes to maintaining a VPS and I'd like to try giving this a shot again. I'm not really interested in cloud/microservice/docker/cluser/whatever, I just want to use something like deploy-rs with a single host and maybe a VPN service like tailscale. What sorts of providers would y'all recommend?
-
Best practices for organizing code repository for multiple machines? What about deployment?
I've messed around with deploy.rs. Simple enough to know what's going on.
-
deploy-rs and colmena should combine efforts
https://github.com/serokell/deploy-rs -- see: https://serokell.io/blog/deploy-rs
- A simple multi-profile Nix-flake deploy tool
-
The best solution for deploying flakes
There are 4 tools I'm taking into consideration right now, but every suggestion is welcome: 1. deploy-rs - I don't know anything about it, heard about it like a day or two ago 2. NixOps - the official one, I don't know what to think, but I have concerns about Flakes compatibility 3. morph - I understand this as "NixOps, but better", no more toughs. 4. colmena - seems to be pretty straightforward with quite nice docs
-
GitOps for NixOS
deploy-rs is great for this as well
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.
What are some alternatives?
colmena - A simple, stateless NixOS deployment tool
Home Manager using Nix - Manage a user environment using Nix [maintainer=@rycee]
nixops - NixOps is a tool for deploying to NixOS machines in a network or cloud.
flake-utils - Pure Nix flake utility functions [maintainer=@zimbatm]
morph - NixOS deployment tool
nixGL - A wrapper tool for nix OpenGL application [maintainer=@guibou]
poetry2nix - Convert poetry projects to nix automagically [maintainer=@adisbladis]
deploy-rs - A simple multi-profile Nix-flake deploy tool.
NixOS-docker - DEPRECATED! Dockerfiles to package Nix in a minimal docker container
digga - A flake utility library to craft shell-, home-, and hosts- environments.
nix-processmgmt - Experimental Nix-based process management framework