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:
ahuston-0 2024-05-28 23:41:22 -04:00 committed by Alice Huston
parent cc55313255
commit 961d262f8f

View File

@ -1,5 +1,18 @@
{ lib, ... }: { 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" ] '' system.activationScripts.setZerotierName = lib.stringAfter [ "var" ] ''
echo "ebe7fbd44565ba9d=ztkubnet" > /var/lib/zerotier-one/devicemap echo "ebe7fbd44565ba9d=ztkubnet" > /var/lib/zerotier-one/devicemap
''; '';
@ -36,4 +49,5 @@
# enable experimental networkd backend so networking doesnt break on hybrid systems # enable experimental networkd backend so networking doesnt break on hybrid systems
networking.useNetworkd = true; networking.useNetworkd = true;
};
} }