fix: get the attributes merging correctly
This commit is contained in:
parent
963a189bcb
commit
147bd86ad5
1 changed files with 4 additions and 3 deletions
|
@ -43,7 +43,7 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
config =
|
||||
config = mkMerge [
|
||||
{
|
||||
services.prometheus.exporters.node = {
|
||||
enable = true;
|
||||
|
@ -52,7 +52,7 @@ in {
|
|||
port = cfg.port_collecter;
|
||||
};
|
||||
}
|
||||
// mkIf cfg.server.enable {
|
||||
(mkIf cfg.server.enable {
|
||||
services.prometheus = {
|
||||
enable = true;
|
||||
port = cfg.server.port;
|
||||
|
@ -67,5 +67,6 @@ in {
|
|||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue