-
-
Notifications
You must be signed in to change notification settings - Fork 492
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
base: master
Are you sure you want to change the base?
Conversation
e12d16a
to
7c2c315
Compare
Signed-off-by: Sirio Balmelli <[email protected]>
7c2c315
to
4809ed4
Compare
tun.device = mkOption { | ||
type = types.nullOr types.str; | ||
default = null; | ||
description = "Name of the tun device. Defaults to nebula.\${networkName}."; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
script = '' | ||
exec ${cfg.package}/bin/nebula -config ${configFile} | ||
''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
script = '' | |
exec ${cfg.package}/bin/nebula -config ${configFile} | |
''; | |
command = "${cfg.package}/bin/nebula -config ${configFile}"; |
type = types.attrsOf ( | ||
types.submodule { | ||
options = { | ||
enable = mkOption { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enable = mkOption { | |
enable = mkEnableOption { |
Can you replace all the booleans that default to false
and just enable logic with mkEnableOption
?
Added on a similar pattern as netbird; this is in production on our systems locally.