I’d like to make it easy to inspect a node configuration in deploy-rs.
Normally, I’d do nix repl
and then :lf .
followed by n=nixosConfigurations.myNodeName.config
.
Is there a way to automate this so I can run a command and immediately have n
defined?
I tried nix repl --expr ':lf .'
but that doesn’t work, and I can’t find a builtin that loads a flake.