feat(apollo): add glance

This commit is contained in:
Mohammad Rafiq 2025-04-06 23:07:23 +08:00
parent c871f56462
commit 85d062d0da
No known key found for this signature in database
3 changed files with 64 additions and 9 deletions

View file

@ -26,6 +26,7 @@
./modules/users.nix ./modules/users.nix
./modules/networking.nix ./modules/networking.nix
./modules/shell.nix ./modules/shell.nix
./modules/programs/stylix.nix
]; ];
graphicalModules = [ graphicalModules = [
./modules/graphical.nix ./modules/graphical.nix

View file

@ -13,7 +13,6 @@ with pkgs;
./programs/kitty.nix ./programs/kitty.nix
./programs/spicetify.nix ./programs/spicetify.nix
./programs/spotifyd.nix ./programs/spotifyd.nix
./programs/stylix.nix
./hardware/audio.nix ./hardware/audio.nix
./hardware/bluetooth.nix ./hardware/bluetooth.nix
]; ];

View file

@ -1,10 +1,65 @@
let
glancePort = 8080;
newsFeedColumn = {
size = "full";
widgets = [
{
title = "Feed";
type = "rss";
style = "detailed-list";
feeds = [
{
title = "Bloomberg";
url = "https://feeds.bloomberg.com/markets/news.rss";
}
{
title = "Fox Business";
url = "https://moxie.foxbusiness.com/google-publisher/markets.xml";
}
];
}
];
};
serviceMonitoringColumn = {
size = "small";
widgets = [
{
title = "Services";
type = "monitor";
cache = "1m";
sites = [
# https://simpleicons.org/
{
title = "Gitea";
icon = "si:gitea";
url = "https://gitea.bwfiq.com";
}
{
title = "LibreChat";
icon = "si:googlechat";
url = "https://chat.bwfiq.com";
}
];
}
];
};
in
{ {
services.glance = { home-manager.users.rafiq.services.glance = {
enable = true; enable = true;
openFirewall = true; settings.server = {
settings = { host = "0.0.0.0";
server.host = "0.0.0.0"; port = glancePort;
server.port = 8080;
}; };
settings.pages = [
{
name = "Home";
columns = [
serviceMonitoringColumn
newsFeedColumn
];
}
];
}; };
networking.firewall.allowedTCPPorts = [ glancePort ];
} }