refactor(nixos): module: hectic services config path

This commit is contained in:
2025-08-28 18:17:18 +00:00
parent 00e02f328a
commit 744a8c9cf4
2 changed files with 4 additions and 4 deletions

View File

@@ -10,12 +10,12 @@
... ...
}: let }: let
system = pkgs.system; system = pkgs.system;
cfg = config.hectic.server-health; cfg = config.hectic.services.server-health;
# URLS="http://..." # default: none # URLS="http://..." # default: none
# VOLUMES="/ /home" # default: all from df -P # VOLUMES="/ /home" # default: all from df -P
in { in {
options = { options = {
hectic.server-health = { hectic.serivices.server-health = {
enable = lib.mkEnableOption "enable serverhelth services"; enable = lib.mkEnableOption "enable serverhelth services";
urls = lib.mkOption { urls = lib.mkOption {
type = lib.types.port; type = lib.types.port;

View File

@@ -1,6 +1,6 @@
{ inputs, flake, self }: { inputs, flake, self }:
{ config, pkgs, lib, ... }: let { config, pkgs, lib, ... }: let
cfg = config.hectic.support-bot; cfg = config.hectic.services.support-bot;
system = pkgs.system; system = pkgs.system;
packagesAttr = lib.mapAttrs (packageName: packageConfig: packagesAttr = lib.mapAttrs (packageName: packageConfig:
@@ -10,7 +10,7 @@
packagesArr = builtins.attrValues packagesAttr; packagesArr = builtins.attrValues packagesAttr;
in { in {
options = { options = {
hectic.support-bot = lib.mkOption { hectic.services.support-bot = lib.mkOption {
type = lib.types.attrsOf ( type = lib.types.attrsOf (
lib.types.submodule { lib.types.submodule {
options = { options = {