Skip to content

Add script to update server configuration.nix#143

Open
fedacking wants to merge 2 commits intomainfrom
feat/update-server-config
Open

Add script to update server configuration.nix#143
fedacking wants to merge 2 commits intomainfrom
feat/update-server-config

Conversation

@fedacking
Copy link
Copy Markdown
Contributor

Summary

  • Adds update-server-config.sh that extracts host-specific values from the server's current /etc/nixos/configuration.nix and substitutes them into the repo template
  • Shows a diff and asks for confirmation before uploading and running nixos-rebuild switch
  • Solves the gap where deploy.sh nix skips configuration.nix due to host-specific placeholders

Test plan

  • Tested on bono.dev server — correctly extracted values and produced a clean diff

🤖 Generated with Claude Code

Extracts host-specific values (IPs, disks, keys, domain, etc.) from
the server's current configuration.nix and substitutes them into the
repo template, then uploads and runs nixos-rebuild switch.
@fedacking fedacking marked this pull request as ready for review March 19, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants