diff --git a/flake.nix b/flake.nix index fa1913f..debda59 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,6 @@ # flake for blakes nixos config # define new devices in outputs -# generation: 304 current 2025-10-11 16:50:34 25.05.20251006.20c4598 6.12.50 * +# generation: 305 current 2025-10-11 16:58:36 25.05.20251006.20c4598 6.12.50 * { description = "blakes nix config"; inputs = { diff --git a/modules/homelab/services/arr/prowlarr/default.nix b/modules/homelab/services/arr/prowlarr/default.nix index b52ca6d..4b52ff8 100644 --- a/modules/homelab/services/arr/prowlarr/default.nix +++ b/modules/homelab/services/arr/prowlarr/default.nix @@ -83,6 +83,15 @@ in }; }; + # add to glance + modules.services.glance.links.mediastack = [{ + title = service; + url = "https://${cfg.url}"; + error-url = "http://${homelab.host_ip}:${toString cfg.port}"; + check-url = "http://${homelab.host_ip}:${toString cfg.port}"; + icon = "di:${service}"; + allow-insecure = false; }]; + # add to backups modules.system.backups.baks = { ${service} = { paths = [ cfg.data_dir ]; }; diff --git a/modules/homelab/services/glance/default.nix b/modules/homelab/services/glance/default.nix index 7d9492a..477005f 100644 --- a/modules/homelab/services/glance/default.nix +++ b/modules/homelab/services/glance/default.nix @@ -1,5 +1,21 @@ { pkgs, config, lib, ... }: +/* +this is a wrapper module for glance that allows you to +to pass monitor entries in with nix, all declaratively! + + | <8yy> | + V V + # add to glance + modules.services.glance.links.mediastack = [{ + title = service; + url = "https://${cfg.url}"; + error-url = "http://${homelab.host_ip}:${toString cfg.port}"; + check-url = "http://${homelab.host_ip}:${toString cfg.port}"; + icon = "di:${service}"; + allow-insecure = true; }]; +*/ + let service = "glance"; cfg = config.modules.services.${service};