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 a91eda5
Show file tree
Hide file tree
Showing 3 changed files with 38 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
36 changes: 36 additions & 0 deletions modules/services/glance.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{ config, lib, ... }:
with lib;
let cfg = config.services.glance;
in mkIf cfg.enable {
services.glance = {
settings = {
server.port = 5678;
pages = [{
columns = [{
size = "full";
widgets = [
{ type = "calendar"; }
{
type = "weather";
units = "imperial";
hour-format = "24h";
location = "Denver, Colorado, United States";
}
];
}];
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 a91eda5

Please sign in to comment.