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

modules/nebula: add nebula overlay network #1285

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

siriobalmelli
Copy link
Contributor

Added on a similar pattern as netbird; this is in production on our systems locally.

Comment on lines +144 to +148
tun.device = mkOption {
type = types.nullOr types.str;
default = null;
description = "Name of the tun device. Defaults to nebula.\${networkName}.";
};
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
tun.device = mkOption {
type = types.nullOr types.str;
default = null;
description = "Name of the tun device. Defaults to nebula.\${networkName}.";
};
tun.device = mkOption {
type = types.str;
default = "nebula.\${networkName}";
description = "Name of the TUN device.";
};

You'll probably also need to set defaultText

Comment on lines +249 to +251
script = ''
exec ${cfg.package}/bin/nebula -config ${configFile}
'';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
script = ''
exec ${cfg.package}/bin/nebula -config ${configFile}
'';
command = "${cfg.package}/bin/nebula -config ${configFile}";

type = types.attrsOf (
types.submodule {
options = {
enable = mkOption {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
enable = mkOption {
enable = mkEnableOption {

Can you replace all the booleans that default to false and just enable logic with mkEnableOption?

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.

3 participants