FUCK YOU MODULES HOMELAB RULES

This commit is contained in:
2025-10-13 22:18:10 -05:00
parent 6682df4338
commit 962f44f05e
38 changed files with 157 additions and 535 deletions

View File

@@ -2,12 +2,12 @@
let
service = "gitea";
cfg = config.modules.services.${service};
cfg = config.homelab.${service};
sec = config.sops.secrets;
homelab = config.modules.homelab;
homelab = config.homelab;
in
{
options.modules.services.${service} = {
options.homelab.${service} = {
enable = lib.mkEnableOption "enables ${service}";
# set port options
@@ -102,7 +102,7 @@ in
};
# add to glance
modules.services.glance.links.services = [{
homelab.glance.links.services = [{
title = service;
url = "https://git.${homelab.public_domain}";
error-url = "http://${homelab.host_ip}:${toString cfg.port}";
@@ -118,7 +118,7 @@ in
};
# add to backups
modules.system.backups.baks = {
system.backups.baks = {
${service} = { paths = [ cfg.data_dir ]; };
};
};