add a toggle to kub_net, as we are getting warnings currently
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
parent
cc55313255
commit
961d262f8f
@ -1,5 +1,18 @@
|
||||
{ lib, ... }:
|
||||
{
|
||||
options = {
|
||||
services.rad-dev.k3s-net = {
|
||||
enable = lib.mkOption {
|
||||
default = true;
|
||||
example = true;
|
||||
description = "Whether to enable k3s-net.";
|
||||
type = lib.types.bool;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf {
|
||||
|
||||
system.activationScripts.setZerotierName = lib.stringAfter [ "var" ] ''
|
||||
echo "ebe7fbd44565ba9d=ztkubnet" > /var/lib/zerotier-one/devicemap
|
||||
'';
|
||||
@ -36,4 +49,5 @@
|
||||
|
||||
# enable experimental networkd backend so networking doesnt break on hybrid systems
|
||||
networking.useNetworkd = true;
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user