refactor(nixos): module: hectic services config path
This commit is contained in:
@@ -10,12 +10,12 @@
|
||||
...
|
||||
}: let
|
||||
system = pkgs.system;
|
||||
cfg = config.hectic.server-health;
|
||||
cfg = config.hectic.services.server-health;
|
||||
# URLS="http://..." # default: none
|
||||
# VOLUMES="/ /home" # default: all from df -P
|
||||
in {
|
||||
options = {
|
||||
hectic.server-health = {
|
||||
hectic.serivices.server-health = {
|
||||
enable = lib.mkEnableOption "enable serverhelth services";
|
||||
urls = lib.mkOption {
|
||||
type = lib.types.port;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ inputs, flake, self }:
|
||||
{ config, pkgs, lib, ... }: let
|
||||
cfg = config.hectic.support-bot;
|
||||
cfg = config.hectic.services.support-bot;
|
||||
system = pkgs.system;
|
||||
|
||||
packagesAttr = lib.mapAttrs (packageName: packageConfig:
|
||||
@@ -10,7 +10,7 @@
|
||||
packagesArr = builtins.attrValues packagesAttr;
|
||||
in {
|
||||
options = {
|
||||
hectic.support-bot = lib.mkOption {
|
||||
hectic.services.support-bot = lib.mkOption {
|
||||
type = lib.types.attrsOf (
|
||||
lib.types.submodule {
|
||||
options = {
|
||||
|
||||
Reference in New Issue
Block a user