fix: home page

This commit is contained in:
Ryan Yin
2024-07-31 15:38:48 +08:00
parent 41dc24e350
commit 15e0b150e9

View File

@@ -1,4 +1,8 @@
{pkgs, ...}: let
{
lib,
pkgs,
...
}: let
configDir = "/data/apps/homepage-dashboard";
in {
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/services/misc/homepage-dashboard.nix
@@ -8,7 +12,7 @@ in {
openFirewall = false;
};
systemd.services.homepage-dashboard.environment = {
HOMEPAGE_CONFIG_DIR = configDir;
HOMEPAGE_CONFIG_DIR = lib.mkForce configDir;
# 1. The value of env var HOMEPAGE_VAR_XXX will replace {{HOMEPAGE_VAR_XXX}} in any config
# HOMEPAGE_VAR_XXX_APIKEY = "myapikey";