Skip to content

Commit

Permalink
glance: init
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <[email protected]>
  • Loading branch information
sumnerevans committed Oct 23, 2024
1 parent 830c402 commit ade0348
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 0 deletions.
1 change: 1 addition & 0 deletions host-configurations/morak.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ in {
# Services #
############
services.airsonic.enable = true;
services.glance.enable = true;
services.grafana.enable = true;
services.isso.enable = true;
services.logrotate.enable = true;
Expand Down
1 change: 1 addition & 0 deletions modules/services/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
./airsonic.nix
./bitwarden.nix
./docker.nix
./glance.nix
./gonic.nix
./grafana.nix
./healthcheck.nix
Expand Down
92 changes: 92 additions & 0 deletions modules/services/glance.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{ config, lib, ... }:
with lib;
let cfg = config.services.glance;
in mkIf cfg.enable {
services.glance = {
settings = {
server.port = 5678;
pages = [{
columns = [
{
size = "small";
widgets = [
{
type = "clock";
hour-format = "24h";
timezones = [
{
timezone = "Etc/UTC";
label = "UTC";
}
{
timezone = "Europe/Helsinki";
label = "Helsinki";
}
];
}
{ type = "calendar"; }
{
type = "weather";
units = "imperial";
hour-format = "24h";
location = "Denver, Colorado, United States";
}
];
}
{
size = "full";
widgets = [{
type = "rss";
title = "Following";
style = "detailed-list";
feeds = [
{ url = "https://b-sharman.dev/blog.xml"; }
{ url = "https://blog.babel.sh/rss"; }
{ url = "https://blog.beeper.com/feed"; }
{ url = "https://blog.danslimmon.com/feed"; }
{ url = "https://chrpaul.de/feed.xml"; }
{ url = "https://dominickm.com/feed"; }
{ url = "https://elijahpotter.dev/rss.xml"; }
{ url = "https://ezrichards.github.io/index.xml"; }
{ url = "https://go.dev/blog/feed.atom"; }
{ url = "https://intuitiveexplanations.com/feed.xml"; }
{ url = "https://jjtech.dev/feed.xml"; }
{ url = "https://jsomers.net/blog/feed"; }
{ url = "https://jvns.ca/atom.xml"; }
{ url = "https://keenanschott.com/index.xml"; }
{ url = "https://ludic.mataroa.blog/rss/"; }
{ url = "https://lukaswerner.com/feed.xml"; }
{ url = "https://lukeplant.me.uk/blog/atom/index.xml"; }
{ url = "https://machinefossil.net/feed.xml"; }
{ url = "https://matrix.org/blog/feed"; }
{ url = "https://mau.fi/blog/index.rss"; }
{ url = "https://medium.com/feed/@ericmigi"; }
{ url = "https://neilalexander.dev/feed.xml"; }
{ url = "https://pointlessramblings.com/index.xml"; }
{ url = "https://skip.house/rss.xml"; }
{ url = "https://textslashplain.com/feed/"; }
{ url = "https://tgrcode.com/rss"; }
{ url = "https://weekly.nixos.org/feeds/all.rss.xml"; }
{ url = "https://www.joelonsoftware.com/feed/"; }
{ url = "https://www.thedroneely.com/posts/rss.xml"; }
{ url = "https://www.wheresyoured.at/rss/"; }
];
}];
}
];
name = "Home";
}];
};
};

services.nginx = {
enable = true;
recommendedProxySettings = true;
virtualHosts."glance.sumnerevans.com" = {
locations."/".proxyPass = let
host = cfg.settings.server.host;
port = toString cfg.settings.server.port;
in "http://${host}:${port}";
};
};
}

0 comments on commit ade0348

Please sign in to comment.