Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use scutil to obtain the default local hostname for flake configs #772

Closed
wants to merge 1 commit into from

Conversation

purcell
Copy link
Contributor

@purcell purcell commented Sep 10, 2023

When a VPN is in use (Wireguard in my case), hostname can spuriously report the short name of the current host as a partial host name on the VPN network, e.g. client-100-34-5-1. Elsewhere in nix-darwin, the options for setting the network host name use scutil, so this change should ensure that the applied name is reliably used to find the config later.

When a VPN is in use (Wireguard in my case), `hostname` can spuriously report the short name of the current host as a partial host name on the VPN network, e.g. `client-100-34-5-1`. Elsewhere in `nix-darwin`, the options for setting the network host name use `scutil`, so this change should ensure that the applied name is reliably used to find the config later.
@purcell
Copy link
Contributor Author

purcell commented Sep 10, 2023

Closing as duplicate of #676

@purcell purcell closed this Sep 10, 2023
@purcell purcell deleted the patch-2 branch September 10, 2023 09:03
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.

1 participant