Created
October 3, 2025 19:18
-
-
Save Lucus16/601405ccffc89a99430f46661b0ffe90 to your computer and use it in GitHub Desktop.
Complete implementation of nixos-rebuild switch.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| system=$(nix-build --no-out-link '<nixpkgs/nixos>' -A system) | |
| nix-env -p /nix/var/nix/profiles/system --set $system | |
| $system/bin/switch-to-configuration switch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment