-
Notifications
You must be signed in to change notification settings - Fork 64
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
Network update and GIVC TLS #915
base: main
Are you sure you want to change the base?
Conversation
Updates: - update flake inputs: givc, ctrl-panel Changes to networking: - auto-generate IP and MAC addresses - remove 'debug' network from ghaf. We can simply remove the host from network in release and facilitate communication over mem share Changes to givc: - enable tls - enable multiple admin service interfaces - centralize givc-cli arguments across ghaf Signed-off-by: Manuel Bluhm <[email protected]>
}; | ||
type = mkOption { | ||
description = "Type of the ghaf component. One of 'host', 'system-vm', or 'app-vm'."; | ||
type = types.str; |
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.
Makes sense to use lib.types.enum
here.
config = { | ||
|
||
# Populate the shared namespace | ||
ghaf = optionalAttrs (hasAttr "microvm" config) { |
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.
Would hasAttrByPath ["microvm" "vms"] config
make this more readable? Instead of the two checks.
}; | ||
port = mkOption { | ||
description = "Port of admin server"; | ||
type = types.str; |
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.
We can use types.port
here
}; | ||
protocol = mkOption { | ||
description = "Protocol of admin server"; | ||
type = types.str; |
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.
types.enum
here would make sense.
@@ -46,11 +46,17 @@ let | |||
inherit (config.ghaf.qemu) audiovm; | |||
}; | |||
|
|||
# Common namespace to pass parameters at built-time from host to VMs | |||
commonModule = { | |||
config.ghaf.common = config.ghaf.common; |
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.
inherit?
Description of changes
This patch re-works the networking and enables TLS for GIVC.
Updates
Changes to networking
the host from network in release and facilitate communication
over mem share
Note that
Changes to givc
Checklist for things done
x86_64
aarch64
riscv64
make-checks
and it passesnixos-rebuild ... switch
Instructions for Testing