From 2af5ca627458ac5ccaa70e138b7df00f1e09ac33 Mon Sep 17 00:00:00 2001 From: prescientmoon Date: Sat, 24 Feb 2024 04:03:21 +0100 Subject: [PATCH] Fix homer theming --- hosts/nixos/lapetus/services/homer.nix | 14 ++++++++------ pkgs/homer.nix | 1 + 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/hosts/nixos/lapetus/services/homer.nix b/hosts/nixos/lapetus/services/homer.nix index a54726b..2dade46 100644 --- a/hosts/nixos/lapetus/services/homer.nix +++ b/hosts/nixos/lapetus/services/homer.nix @@ -4,8 +4,9 @@ let highlight-primary = base0A; highlight-secondary = base09; highlight-hover = base08; - text-title = base00; - text-subtitle = base00; + text-header = base00; + text-title = base05; + text-subtitle = base05; text = base05; link = base08; background = base00; @@ -13,7 +14,7 @@ let }; fa = name: "fas fa-${name}"; - icon = file: ../../../../common/icons/${file}; + icon = file: "./assets/${../../../../common/icons/${file}}"; in { services.nginx.virtualHosts."lab.moonythm.dev" = { @@ -21,11 +22,12 @@ in acmeRoot = null; forceSSL = true; root = pkgs.homer.withAssets { + extraAssets = [ ../../../../common/icons ]; config = { title = "✨ The celestial citadel ✨"; subtitle = "The home for my homelab :3"; - header = false; + header = true; footer = false; connectivityCheck = true; @@ -60,8 +62,8 @@ in ]; } { - name = "Self management"; - icon = fa "superpowers"; + name = "Productivity"; + icon = fa "rocket"; items = [ { name = "Intray"; diff --git a/pkgs/homer.nix b/pkgs/homer.nix index 9872bc7..cd387a5 100644 --- a/pkgs/homer.nix +++ b/pkgs/homer.nix @@ -1,3 +1,4 @@ +# Taken from this comment: https://github.com/NixOS/nixpkgs/issues/152343#issuecomment-1367069827 { lib, fetchzip, writeTextFile, runCommandLocal, symlinkJoin }: let