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 #133

Closed
wants to merge 1 commit into from

Conversation

blaggacao
Copy link
Contributor

@blaggacao blaggacao commented Oct 2, 2020

closes #132

Please help with the TODOS, I don't know nix (the language) very well.

@blaggacao blaggacao changed the title Fix #132 I/II hostName must be dnsLabel Oct 2, 2020
Comment on lines +22 to +25
# TODO: Please help how to test the string for beeing a FQDN vs an IP address?!?
hostName = builtins.head (lib.splitString "." machineName);
# TODO: Please help how to set null in case of an empty list/no-domain (the default)
domain = builtins.concatStringsSep "." (builtins.drop 1 (lib.splitString "." machineName));
Copy link
Contributor Author

@blaggacao blaggacao Oct 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does anybody know the solution?

@srhb
Copy link
Contributor

srhb commented Apr 29, 2021

I don't think we want to break this. Let's leave it up to the user and the NixOS module system as it is today.

@srhb srhb closed this Apr 29, 2021
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.

hostName must be dnsLabel and therefore cannot be machineName
2 participants