mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore(monitoring): nf-fmt-nix
This commit is contained in:
parent
6fb140c7e6
commit
a0a7df1b0e
6 changed files with 164 additions and 141 deletions
|
|
@ -146,9 +146,11 @@
|
|||
};
|
||||
in {
|
||||
options.exports = with lib.types; {
|
||||
defaultServices = mkEnableOption "common base services" // {
|
||||
default = config.type == "NixOS";
|
||||
};
|
||||
defaultServices =
|
||||
mkEnableOption "common base services"
|
||||
// {
|
||||
default = config.type == "NixOS";
|
||||
};
|
||||
services = mkOption {
|
||||
type = attrsOf (submoduleWith {
|
||||
modules = [serviceModule];
|
||||
|
|
@ -170,7 +172,7 @@ in {
|
|||
"sshd"
|
||||
"prometheus-exporters-node"
|
||||
"promtail"
|
||||
] (_: { enable = mkAlmostOptionDefault true; });
|
||||
] (_: {enable = mkAlmostOptionDefault true;});
|
||||
in {
|
||||
services = mkIf cfg.defaultServices defaultServices;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue