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

hostName must be dnsLabel and therefore cannot be machineName #132

Open
blaggacao opened this issue Oct 2, 2020 · 1 comment
Open

hostName must be dnsLabel and therefore cannot be machineName #132

blaggacao opened this issue Oct 2, 2020 · 1 comment

Comments

@blaggacao
Copy link
Contributor

networking.hostName = lib.mkDefault machineName;

https://search.nixos.org/options?show=networking.hostName&query=networking.hostName&from=0&size=30&sort=relevance&channel=unstable#disabled

Out of hostname.example.com it should be only the dns label hostname.

It also means the examples are not tested:

"web01.example.com" = { config, pkgs, ... }: {

@blaggacao
Copy link
Contributor Author

It would also be good to arrange by default for hostname --fqdn to return the FQDN for identity discovery in the absence of a DNS or DHCP (static network yay! wireguard hurray!):

See:

blaggacao pushed a commit to blaggacao/morph that referenced this issue Oct 2, 2020
blaggacao pushed a commit to blaggacao/morph that referenced this issue Oct 2, 2020
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 a pull request may close this issue.

1 participant