84 lines
1.8 KiB
Nix
84 lines
1.8 KiB
Nix
let
|
|
glancePort = 1227;
|
|
homeColumn = {
|
|
size = "full";
|
|
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";
|
|
}
|
|
];
|
|
}
|
|
{
|
|
title = "Newsletters";
|
|
type = "rss";
|
|
style = "detailed-list";
|
|
limit = 100000;
|
|
feeds = [
|
|
{
|
|
title = "selfh.st";
|
|
url = "https://selfh.st/rss/";
|
|
}
|
|
{
|
|
title = "This Week in Rust";
|
|
url = "https://this-week-in-rust.org/rss.xml";
|
|
}
|
|
];
|
|
}
|
|
{
|
|
title = "Blogs";
|
|
type = "rss";
|
|
style = "detailed-list";
|
|
limit = 100000;
|
|
feeds = [
|
|
{
|
|
title = "Makefile.feld";
|
|
url = "https://blog.feld.me/feeds/all.atom.xml";
|
|
}
|
|
{
|
|
title = "Xe Iaso";
|
|
url = "https://xeiaso.net/blog.rss";
|
|
}
|
|
{
|
|
title = "Alex Haydock";
|
|
url = "https://blog.infected.systems/posts/index.xml";
|
|
}
|
|
{
|
|
title = "journix.dev";
|
|
url = "https://journix.dev/feed.xml";
|
|
}
|
|
];
|
|
}
|
|
];
|
|
};
|
|
in
|
|
{
|
|
home-manager.users.rafiq.services.glance = {
|
|
enable = true;
|
|
settings.server = {
|
|
host = "0.0.0.0";
|
|
port = glancePort;
|
|
};
|
|
settings.pages = [
|
|
{
|
|
name = "Home";
|
|
columns = [
|
|
homeColumn
|
|
];
|
|
}
|
|
];
|
|
};
|
|
networking.firewall.allowedTCPPorts = [ glancePort ];
|
|
}
|