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/networking.nix
./modules/shell.nix
./modules/programs/stylix.nix
];
graphicalModules = [
./modules/graphical.nix

View file

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

View file

@ -1,10 +1,65 @@
{
services.glance = {
enable = true;
openFirewall = true;
settings = {
server.host = "0.0.0.0";
server.port = 8080;
};
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
{
home-manager.users.rafiq.services.glance = {
enable = true;
settings.server = {
host = "0.0.0.0";
port = glancePort;
};
settings.pages = [
{
name = "Home";
columns = [
serviceMonitoringColumn
newsFeedColumn
];
}
];
};
networking.firewall.allowedTCPPorts = [ glancePort ];
}