Update config and option names for modules
This commit is contained in:
parent
fe508bd127
commit
bb9b77e2f8
54 changed files with 122 additions and 120 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
with lib;
|
||||
|
||||
{
|
||||
options.nixosModules.homelab = {
|
||||
options.features.homelab = {
|
||||
enable = mkEnableOption "Enable homelab services and configuration";
|
||||
|
||||
baseDomain = mkOption {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue