84 lines
2.1 KiB
Nix
84 lines
2.1 KiB
Nix
{ config, ... }:
|
|
|
|
{
|
|
server = {
|
|
port = 5001;
|
|
host = "127.0.1.2";
|
|
};
|
|
|
|
pages =
|
|
let
|
|
fullCol = widgets: {
|
|
size = "full";
|
|
inherit widgets;
|
|
};
|
|
in
|
|
[
|
|
{
|
|
name = "Home";
|
|
columns = [
|
|
(fullCol [
|
|
{
|
|
type = "search";
|
|
search-engine = "http://search.home.feal.no/search?q={QUERY}";
|
|
}
|
|
{
|
|
type = "weather";
|
|
units = "metric";
|
|
location = "Trondheim, Norway";
|
|
}
|
|
])
|
|
(fullCol [
|
|
{
|
|
type = "hacker-news";
|
|
limit = 20;
|
|
collapse-after = 5;
|
|
}
|
|
{
|
|
type = "monitor";
|
|
cache = "5m";
|
|
sites =
|
|
let
|
|
site = title: url: { inherit title url; };
|
|
in
|
|
[
|
|
(site "Jellyfin" "http://jellyfin.home.feal.no")
|
|
(site "Gitea" "https://git.feal.no")
|
|
(site "VaultWarden" "https://pw.feal.no")
|
|
];
|
|
}
|
|
])
|
|
];
|
|
}
|
|
|
|
{
|
|
name = "News";
|
|
columns =
|
|
let
|
|
feed = title: url: { inherit title url; };
|
|
rss = title: feeds: {
|
|
type = "rss";
|
|
inherit title feeds;
|
|
};
|
|
in
|
|
[
|
|
(fullCol [
|
|
(rss "Norway" [
|
|
(feed "NRK" "https://www.nrk.no/toppsaker.rss")
|
|
(feed "Bygdeposten" "https://www.bygdeposten.no/service/rss")
|
|
(feed "Nidaros" "https://www.nidaros.no/service/rss")
|
|
])
|
|
])
|
|
|
|
(fullCol [
|
|
(rss "NTNU" [
|
|
(feed "OmegaV" "https://omegav.no/newsrss")
|
|
(feed "PVV" "https://www.pvv.ntnu.no/w/api.php?hidebots=1&urlversion=1&days=7&limit=50&action=feedrecentchanges&feedformat=atom")
|
|
(feed "IT-Varsel" "https://varsel.it.ntnu.no/subscribe/rss/")
|
|
])
|
|
])
|
|
];
|
|
}
|
|
];
|
|
}
|