mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-15 00:52:39 +02:00
fix: home page
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
{pkgs, ...}: let
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
configDir = "/data/apps/homepage-dashboard";
|
configDir = "/data/apps/homepage-dashboard";
|
||||||
in {
|
in {
|
||||||
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/services/misc/homepage-dashboard.nix
|
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/services/misc/homepage-dashboard.nix
|
||||||
@@ -8,7 +12,7 @@ in {
|
|||||||
openFirewall = false;
|
openFirewall = false;
|
||||||
};
|
};
|
||||||
systemd.services.homepage-dashboard.environment = {
|
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
|
# 1. The value of env var HOMEPAGE_VAR_XXX will replace {{HOMEPAGE_VAR_XXX}} in any config
|
||||||
# HOMEPAGE_VAR_XXX_APIKEY = "myapikey";
|
# HOMEPAGE_VAR_XXX_APIKEY = "myapikey";
|
||||||
|
|||||||
Reference in New Issue
Block a user