feat(apollo): add glance
This commit is contained in:
parent
c871f56462
commit
85d062d0da
3 changed files with 64 additions and 9 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,10 +1,65 @@
|
||||||
{
|
let
|
||||||
services.glance = {
|
glancePort = 8080;
|
||||||
enable = true;
|
newsFeedColumn = {
|
||||||
openFirewall = true;
|
size = "full";
|
||||||
settings = {
|
widgets = [
|
||||||
server.host = "0.0.0.0";
|
{
|
||||||
server.port = 8080;
|
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 ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue