by euroclydon · 4y ago · 0 comments
I wrote about the router here. It's pretty heavy on router stuff, and my own thoughts though...
Could you share more details on push_to_router.sh? Is it a wrapper around calling nixos-rebuild through ssh?
tar -czf - nixconfig | ssh 192.168.1.1 \
'tar -zxf - && sudo cp -r ./nixconfig/* /etc/nixos/ && sudo nixos-rebuild --show-trace '"${rebuild_flag} ${name_flag}"nixos-rebuild --flake .#foo --target-host root@foo --build-host localhost switch