Home Explore Blog CI



nixpkgs

pkgs/by-name/sw/switch-to-configuration-ng/README.md
6f94a57185ffd170d7be3f3d0ae0b178e627a2e68180aca30000000300000236
# switch-to-configuration-ng

This program is a reimplementation of [switch-to-configuration](/nixos/modules/system/activation/switch-to-configuration.pl) in Rust. The goal is to be compatible in as many ways as possible to the original implementation, at least as long as the original is still in nixpkgs. Any behavioral modifications to this program should also be implemented in the original, and vice versa.

## Build in a devshell

```
cd ./pkgs/by-name/sw/switch-to-configuration-ng
nix-shell ../../../.. -A switch-to-configuration-ng
cd ./src
cargo build
```

Chunks
bf120d86 (1st chunk of `pkgs/by-name/sw/switch-to-configuration-ng/README.md`)
Title: switch-to-configuration-ng: A Rust Reimplementation
Summary
This section introduces switch-to-configuration-ng, a Rust reimplementation of the original Perl script. The goal is to maintain compatibility with the original, ensuring any behavioral changes are mirrored in both versions. It also provides instructions on how to build the program within a Nix development shell.