Homer: Improve styling.

This commit is contained in:
Dmitry Voronin 2025-01-15 12:07:28 +03:00
parent 43de7ea325
commit ded12ad5f5
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
5 changed files with 40 additions and 35 deletions

View file

@ -1,8 +1,4 @@
{ { config, lib, ... }:
config,
lib,
...
}:
let let
cfg = config.module.sway; cfg = config.module.sway;
in in

View file

@ -12,7 +12,8 @@
isDefault = true; isDefault = true;
withExternalGnupg = true; withExternalGnupg = true;
}; };
settings = let settings =
let
dayEnd = 19; dayEnd = 19;
dayStart = 10; dayStart = 10;
fontSize = config.module.style.font.size.application; fontSize = config.module.style.font.size.application;

View file

@ -62,7 +62,8 @@ let
(mkVideoLink "LiveWallpaperPc" "https://livewallpaperpc.com") (mkVideoLink "LiveWallpaperPc" "https://livewallpaperpc.com")
(mkVideoLink "MoeWalls" "https://moewalls.com") (mkVideoLink "MoeWalls" "https://moewalls.com")
(mkVideoLink "Motion Backgrounds" "https://motionbgs.com") (mkVideoLink "Motion Backgrounds" "https://motionbgs.com")
] ++ [ ]
++ [
(mkImageLink "Unsplash" "https://unsplash.com") (mkImageLink "Unsplash" "https://unsplash.com")
(mkImageLink "Wallhaven" "https://wallhaven.cc") (mkImageLink "Wallhaven" "https://wallhaven.cc")
] ]
@ -102,6 +103,7 @@ let
theme = "default"; theme = "default";
title = "Dashboard"; title = "Dashboard";
columns = "auto"; # 1, 2, 3, 4, 6, 12 or auto. columns = "auto"; # 1, 2, 3, 4, 6, 12 or auto.
stylesheet = [ "assets/custom.css" ];
defaults = { defaults = {
colorTheme = "dark"; colorTheme = "dark";
layout = "columns"; # columns or list. layout = "columns"; # columns or list.

4
package/homer/Custom.css Normal file
View file

@ -0,0 +1,4 @@
.search-label {
display: none;
visibility: hidden;
}

View file

@ -6,6 +6,7 @@
}@args: }@args:
let let
cfg = (import ./Config.nix args).file; cfg = (import ./Config.nix args).file;
css = ./Custom.css;
in in
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
dontUnpack = true; dontUnpack = true;
@ -23,6 +24,7 @@ stdenv.mkDerivation (finalAttrs: {
pushd $out pushd $out
unzip $src unzip $src
cp ${cfg} $out/assets/config.yml cp ${cfg} $out/assets/config.yml
cp ${css} $out/assets/custom.css
runHook postInstall runHook postInstall
''; '';