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
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
{
systemConf = {
face = ../../../../home/config/.face;
face = pkgs.fetchurl {
url = "${nextcloudURL}/s/NDHdYnwrLqt5Syk/preview";
hash = "sha256-mrTL+Q9rfp/RSMN19ymv0tV4hcT+wkp3C1dLITvZuR8=";
};
domain = "dnywe.com";
};

View file

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