configuration.nix/modules/facts.nix

25 lines
655 B
Nix
Raw Permalink Normal View History

{ lib, ... }: {
options.nodeconfig = {
facts = {
wireguard-ip = lib.mkOption {
2024-11-17 10:28:43 +05:30
type = lib.types.nullOr lib.types.str;
default = null;
example = "10.0.0.1";
description = "Wireguard IP of the node";
};
2024-11-17 10:28:43 +05:30
local-ip = lib.mkOption {
type = lib.types.nullOr lib.types.str;
default = null;
example = "192.168.1.1";
description = "Local IP of the node";
};
external-ip = lib.mkOption {
type = lib.types.nullOr lib.types.str;
default = null;
example = "11.1.1.2";
description = "Public facing IP of the node";
};
};
};
}