Last active
May 30, 2022 13:49
-
-
Save luochen1990/ef1b1beb462a60f1e466dce1bf8a822c to your computer and use it in GitHub Desktop.
A convient nix-repl to debug your nix flakes
This file contains 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
#!/usr/bin/env nix-shell | |
#! nix-shell -p "expect" -i expect | |
#set timeout -1 | |
cd ~/ws/nixos | |
spawn nix repl | |
send ":lf .\n" | |
send ":a builtins\n" | |
send ":a nixosConfigurations.[ exec hostname ]\n" | |
interact |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment