chore: fetch face from remote source

This commit is contained in:
danny 2026-03-06 17:52:33 +08:00
parent 98b4f598f8
commit b9b9bbc998
3 changed files with 21 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

View file

@ -1,10 +1,22 @@
{ config, ... }: {
self,
config,
pkgs,
...
}:
let let
inherit (config.systemConf) username; inherit (config.systemConf) username;
serverCfg = self.nixosConfigurations.dn-server.config;
serverNextcloudCfg = serverCfg.services.nextcloud;
nextcloudURL =
(if serverNextcloudCfg.https then "https" else "http") + "://" + serverNextcloudCfg.hostName;
in in
{ {
systemConf = { systemConf = {
face = ../../../../home/config/.face; face = pkgs.fetchurl {
url = "${nextcloudURL}/s/NDHdYnwrLqt5Syk/preview";
hash = "sha256-mrTL+Q9rfp/RSMN19ymv0tV4hcT+wkp3C1dLITvZuR8=";
};
domain = "dnywe.com"; domain = "dnywe.com";
}; };

View file

@ -1,10 +1,15 @@
{ hostname }: { hostname }:
{ {
self,
pkgs, pkgs,
... ...
}: }:
let let
username = "skydrive"; username = "skydrive";
serverCfg = self.nixosConfigurations.dn-server.config;
serverNextcloudCfg = serverCfg.services.nextcloud;
nextcloudURL =
(if serverNextcloudCfg.https then "https" else "http") + "://" + serverNextcloudCfg.hostName;
in in
{ {
systemConf = { systemConf = {
@ -13,8 +18,8 @@ in
enableHomeManager = true; enableHomeManager = true;
windowManager = "niri"; windowManager = "niri";
face = pkgs.fetchurl { face = pkgs.fetchurl {
url = "https://git.dnywe.com/dachxy/skydrive-avatar/raw/branch/main/skydrive.jpg"; url = "${nextcloudURL}/s/EtMnqXqCy78MLt4/preview";
hash = "sha256-aMjl6VL1Zy+r3ElfFyhFOlJKWn42JOnAFfBXF+GPB/Q="; hash = "sha256-McwMPLFJWiWhh7K12ZHI6uwyvRgj9zW/hFIBl3dLrKE=";
}; };
}; };