298 current 2025-10-11 14:26:58 25.05.20251006.20c4598 6.12.50 *

This commit is contained in:
2025-10-11 14:30:28 -05:00
parent 790e358869
commit 01fe78bffe
2 changed files with 22 additions and 17 deletions

View File

@@ -1,6 +1,6 @@
# flake for blakes nixos config # flake for blakes nixos config
# define new devices in outputs # define new devices in outputs
# generation: 297 current 2025-10-11 13:48:37 25.05.20251006.20c4598 6.12.50 * # generation: 298 current 2025-10-11 14:26:58 25.05.20251006.20c4598 6.12.50 *
{ {
description = "blakes nix config"; description = "blakes nix config";
inputs = { inputs = {

View File

@@ -5,14 +5,6 @@ let
cfg = config.modules.services.${service}; cfg = config.modules.services.${service};
sec = config.sops.secrets; sec = config.sops.secrets;
homelab = config.modules.homelab; homelab = config.modules.homelab;
services = lib.attrsets.mapAttrsToList (name: srv:
{
title = srv.name;
icon = srv.icon;
url = srv.url;
allow-insecure = srv.icon;
}
) config.modules.services.${service}.link;
in in
{ {
options.modules.services.${service} = { options.modules.services.${service} = {
@@ -75,14 +67,27 @@ in
}; };
services.${service} = { services.${service} = {
enable = true; enable = true;
openFirewall = true; openFirewall = true;
settings = { settings = {
server = { server = {
host = "0.0.0.0"; host = "0.0.0.0";
port = cfg.port; port = cfg.port;
}; };
pages = [ pages = let
# Pre-filter links per category
categorySites = lib.listToAttrs (map (cat: {
name = mediastack;
value = lib.attrsets.mapAttrsToList (name: srv:
{
title = srv.description;
url = srv.url;
icon = srv.icon;
}
) (lib.attrsets.filterAttrs (k: v: v.category == cat) config.services.glance.link);
}) categories);
in
[
{ {
name = "violet"; name = "violet";
hide-desktop-navigation = true; hide-desktop-navigation = true;