Update config and option names for modules

This commit is contained in:
Oliver Davies 2025-04-30 03:09:17 +01:00
parent fe508bd127
commit bb9b77e2f8
54 changed files with 122 additions and 120 deletions

View file

@ -4,11 +4,11 @@ with lib;
let
cfg = homelab.services.${service};
homelab = config.nixosModules.homelab;
homelab = config.features.homelab;
service = "audiobookshelf";
in
{
options.nixosModules.homelab.services.${service} = {
options.features.homelab.services.${service} = {
enable = mkEnableOption "Enable ${service}";
url = mkOption {
@ -26,7 +26,7 @@ in
useACMEHost = homelab.baseDomain;
locations."/" = {
proxyPass = "http://localhost:${toString cfg.port}";
proxyPass = "http://localhost:${toString config.services.${service}.port}";
recommendedProxySettings = true;
};
};

View file

@ -3,7 +3,7 @@
with lib;
{
options.nixosModules.homelab = {
options.features.homelab = {
enable = mkEnableOption "Enable homelab services and configuration";
baseDomain = mkOption {

View file

@ -4,11 +4,11 @@ with lib;
let
cfg = homelab.services.${service};
homelab = config.nixosModules.homelab;
homelab = config.features.homelab;
service = "forgejo";
in
{
options.nixosModules.homelab.services.${service} = {
options.features.homelab.services.${service} = {
enable = mkEnableOption "Enable ${service}";
cloudflared.tunnelId = mkOption {

View file

@ -9,11 +9,11 @@ with lib;
let
cfg = homelab.services.${service};
homelab = config.nixosModules.homelab;
homelab = config.features.homelab;
service = "immich";
in
{
options.nixosModules.homelab.services.${service} = {
options.features.homelab.services.${service} = {
enable = mkEnableOption "Enable ${service}";
url = mkOption {

View file

@ -4,11 +4,11 @@ with lib;
let
cfg = homelab.services.${service};
homelab = config.nixosModules.homelab;
homelab = config.features.homelab;
service = "jellyfin";
in
{
options.nixosModules.homelab.services.${service} = {
options.features.homelab.services.${service} = {
enable = mkEnableOption "Enable ${service}";
url = mkOption {

View file

@ -4,11 +4,11 @@ with lib;
let
cfg = homelab.services.paperless;
homelab = config.nixosModules.homelab;
homelab = config.features.homelab;
service = "paperless";
in
{
options.nixosModules.homelab.services.${service} = {
options.features.homelab.services.${service} = {
enable = mkEnableOption "Enable ${service}";
url = mkOption {