topology: localize nixos module, add custom extractor, fix misc

This commit is contained in:
h7x4
2025-12-30 02:01:10 +09:00
parent 58be01e620
commit 197433a4c3
4 changed files with 93 additions and 31 deletions

View File

@@ -0,0 +1,11 @@
{ config, lib, ... }:
let
cfg = config.services.greg-ng or { enable = false; };
in
{
config.topology.self.services.greg-ng = lib.mkIf cfg.enable {
name = "Greg-ng";
icon = ../icons/greg-ng.png;
details.listen = { text = "${cfg.settings.host}:${toString cfg.settings.port}"; };
};
}