Using nodes instead of hardcoded server names
Might not work probably did smnth wrong
This commit is contained in:
parent
7f5f21dc8a
commit
cf600e2dc1
2 changed files with 7 additions and 21 deletions
|
@ -10,6 +10,11 @@ in {
|
|||
imports = [];
|
||||
|
||||
options.services.skynet."${name}" = {
|
||||
#list of servers passed in for monitoring
|
||||
servers = mkOption {
|
||||
type = types.listOf types.str;
|
||||
};
|
||||
|
||||
server = {
|
||||
enable = mkEnableOption "Prometheus Server";
|
||||
host = {
|
||||
|
@ -26,10 +31,6 @@ in {
|
|||
type = types.port;
|
||||
default = 9001;
|
||||
};
|
||||
#list of servers passed in for monitoring
|
||||
servers = mkOption {
|
||||
type = types.listOf types.str;
|
||||
};
|
||||
};
|
||||
|
||||
collecter_port = mkOption {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue