diff --git a/hosts/lab/default.nix b/hosts/lab/default.nix index a91450d..daa272e 100644 --- a/hosts/lab/default.nix +++ b/hosts/lab/default.nix @@ -20,13 +20,12 @@ enable = true; displayDays = 90; intro = '' - This status page is written in pure bash. It tracks 90 days of - historical data per service. Each category may probe at its own - interval; that's noted next to the category description. + This page is written in Bash. It tracks 90 days of historical uptime + data for various services. This page regenerates every 1 minute. ''; categories = [ { - description = "These first sites are all hosted personally."; + description = "My services"; intervalSeconds = 60; services = [ { name = "website"; url = "https://ily.rs"; } @@ -39,7 +38,7 @@ ]; } { - description = "Other services I like to keep track of."; + description = "Other services"; intervalSeconds = 300; hideUrls = true; services = [ diff --git a/modules/uptime/default.nix b/modules/uptime/default.nix index e8ccca3..9172b40 100644 --- a/modules/uptime/default.nix +++ b/modules/uptime/default.nix @@ -41,7 +41,7 @@ let }; }; - configFile = pkgs.writeText "uptime-config" (lib.concatStringsSep "\n" ( + configFile = pkgs.writeText "uptime-config" ((lib.concatStringsSep "\n" ( (lib.imap0 (i: cat: "CAT\t${toString i}\t${toString cat.intervalSeconds}\t${if cat.hideUrls then "1" else "0"}\t${cat.description}" ) cfg.categories) @@ -49,7 +49,7 @@ let (lib.concatLists (lib.imap0 (i: cat: map (svc: "SVC\t${toString i}\t${svc.name}\t${svc.url}") cat.services ) cfg.categories)) - )); + )) + "\n"); introFile = pkgs.writeText "uptime-intro" cfg.intro;