refactor(nixos): module: hectic services config path
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user