snowflake/hosts/yuki/services/homepage/default.nix

89 lines
1.8 KiB
Nix
Raw Normal View History

2024-03-18 14:38:32 -04:00
{config, ...}: {
imports = [
./widgets.nix
./services.nix
];
sops.secrets.homepage-secrets = {
sopsFile = ../../../../secrets/homepage/secrets.yaml;
};
services.homepage-dashboard = {
enable = true;
listenPort = 7676;
openFirewall = true;
environmentFile = config.sops.secrets.homepage-secrets.path;
settings = {
base = "https://dashboard.internal.flake.sh/";
title = "kumo";
language = "en";
headerStyle = "boxedWidgets";
disableCollape = true;
favicon = "https://em-content.zobj.net/source/twitter/376/cloud_2601-fe0f.png";
cardBlur = "md";
theme = "dark";
color = "gray";
fiveColumns = true;
statusStyle = "dot";
hideVersion = true;
2024-04-17 23:53:45 -04:00
background = {
2024-04-26 17:25:11 -04:00
image = "https://i.imgur.com/Q8xIWP7.png";
2024-04-17 23:53:45 -04:00
brightness = 75;
};
2024-03-18 14:38:32 -04:00
providers = {
openweathermap = "{{HOMEPAGE_VAR_OPENWEATHERMAP}}";
};
layout = [
{
"Sora" = {
style = "row";
columns = 3;
};
}
{
"News" = {
style = "row";
columns = 1;
};
}
{
"Infra" = {
style = "row";
columns = 4;
};
}
{
"Networking" = {
style = "row";
columns = 1;
};
}
{
"Monitoring" = {
style = "row";
columns = 2;
};
}
{
"Media" = {
style = "row";
columns = 2;
};
}
{
"Storage" = {
style = "row";
columns = 1;
};
}
{
"Misc" = {
style = "row";
columns = 5;
};
}
];
};
};
}