mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 10:18:37 +02:00
fix: homepage - backgroud image
This commit is contained in:
@@ -1,4 +1,9 @@
|
|||||||
{config, ...}: let
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
wallpapers,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
hostCommonConfig = ''
|
hostCommonConfig = ''
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
tls ${../../certs/ecc-server.crt} ${config.age.secrets."certs/ecc-server.key".path} {
|
tls ${../../certs/ecc-server.crt} ${config.age.secrets."certs/ecc-server.key".path} {
|
||||||
@@ -82,4 +87,11 @@ in {
|
|||||||
# directory for virtual machine's images
|
# directory for virtual machine's images
|
||||||
"d /var/lib/caddy/fileserver/vms 0755 caddy caddy"
|
"d /var/lib/caddy/fileserver/vms 0755 caddy caddy"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Add all my wallpapers into /var/lib/caddy/fileserver/wallpapers
|
||||||
|
# Install the homepage-dashboard configuration files
|
||||||
|
system.activationScripts.installCaddyWallpapers = ''
|
||||||
|
mkdir -p /var/lib/caddy/fileserver/wallpapers
|
||||||
|
${pkgs.rsync}/bin/rsync -avz --chmod=D2755,F644 ${wallpapers}/ /var/lib/caddy/fileserver/wallpapers/
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 5.5 MiB |
@@ -3,12 +3,12 @@
|
|||||||
# https://gethomepage.dev/latest/configs/settings
|
# https://gethomepage.dev/latest/configs/settings
|
||||||
|
|
||||||
title: Ryan Yin's Homelab
|
title: Ryan Yin's Homelab
|
||||||
base: http://home.writefor.fun/
|
base: https://home.writefor.fun/
|
||||||
favicon: https://thiscute.world/favicon.ico
|
favicon: https://thiscute.world/favicon.ico
|
||||||
|
|
||||||
# https://developer.mozilla.org/en-US/docs/Web/Manifest/start_url
|
# https://developer.mozilla.org/en-US/docs/Web/Manifest/start_url
|
||||||
# Used by some browsers to determine the start page of the web application
|
# Used by some browsers to determine the start page of the web application
|
||||||
startUrl: http://home.writefor.fun/
|
startUrl: https://home.writefor.fun/
|
||||||
|
|
||||||
language: zh
|
language: zh
|
||||||
|
|
||||||
@@ -20,11 +20,11 @@ providers:
|
|||||||
weatherapi: { { HOMEPAGE_VAR_WEATHERAPI_APIKEY } }
|
weatherapi: { { HOMEPAGE_VAR_WEATHERAPI_APIKEY } }
|
||||||
|
|
||||||
background:
|
background:
|
||||||
image: /images/rolling-girls.png
|
image: https://file.writefor.fun/wallpapers/rolling-girls.png
|
||||||
blur: sm # sm, "", md, xl... see https://tailwindcss.com/docs/backdrop-blur
|
blur: sm # sm, "", md, xl... see https://tailwindcss.com/docs/backdrop-blur
|
||||||
saturate: 50 # 0, 50, 100... see https://tailwindcss.com/docs/backdrop-saturate
|
saturate: 90 # 0, 50, 100... see https://tailwindcss.com/docs/backdrop-saturate
|
||||||
brightness: 50 # 0, 50, 75... see https://tailwindcss.com/docs/backdrop-brightness
|
brightness: 90 # 0, 50, 75... see https://tailwindcss.com/docs/backdrop-brightness
|
||||||
opacity: 50 # 0-100
|
opacity: 85 # 0-100
|
||||||
|
|
||||||
theme: dark # or light
|
theme: dark # or light
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user