Netbird Changes + virt-manager

This commit is contained in:
Annika Merris 2024-08-27 14:37:35 -04:00
parent 646e294880
commit 93edbaf48d
5 changed files with 28 additions and 1 deletions

View file

@ -14,6 +14,13 @@
'';
default = "";
};
setup_key_file = lib.mkOption {
type = lib.types.str;
description = ''
Path to a file containing a setup key obtained from the Management Service Dashboard (used to register peer)
'';
default = "";
};
management_url = lib.mkOption {
type = lib.types.str;
description = ''
@ -48,6 +55,9 @@
(lib.mkIf (config.netbird.opts.setup_key != "") {
NB_SETUP_KEY = config.netbird.opts.setup_key;
})
(lib.mkIf(config.netbird.opts.setup_key_file != "") {
NB_SETUP_KEY_FILE = config.netbird.opts.setup_key_file;
})
]);
};
}