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
# 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";
inputs = {

View File

@@ -5,14 +5,6 @@ let
cfg = config.modules.services.${service};
sec = config.sops.secrets;
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
{
options.modules.services.${service} = {
@@ -75,14 +67,27 @@ in
};
services.${service} = {
enable = true;
openFirewall = true;
settings = {
server = {
host = "0.0.0.0";
port = cfg.port;
};
pages = [
enable = true;
openFirewall = true;
settings = {
server = {
host = "0.0.0.0";
port = cfg.port;
};
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";
hide-desktop-navigation = true;