starting dbrw config
All checks were successful
/ update-readme (push) Successful in 50s

This commit is contained in:
dim
2024-12-30 11:27:00 +07:00
parent 863253bc74
commit 4c874e960d
45 changed files with 1068 additions and 594 deletions

View File

@@ -13,7 +13,7 @@ let
"config": {
"title" : "Welcome Home",
"openLinksInNewTab": false,
"locale": "fr-FR",
"locale": "id-ID",
"colors": {
"primary": "${accent}",
"background": "${background}",
@@ -49,37 +49,36 @@ let
}
'';
homepage = pkgs.buildNpmPackage {
pname = "homepage";
version = "0.0.0";
# homepage = pkgs.buildNpmPackage {
# pname = "homepage";
# version = "0.0.0";
#
# src = pkgs.fetchFromGitHub {
# owner = "anotherhadi";
# repo = "homepage";
# rev = "b77d35ed3596eb451bd2ec78063d7cc6e73c773d";
# hash = "sha256-j/40922kfAh6zqJ4IRYpr66YXNNYsxuXwZ0aiJFJea0=";
# };
#
# # npmDepsHash = lib.fakeHash;
# npmDepsHash = "sha256-bG+CHTq2Rst3JMxsjAC81KhK+G7WwsTVD1eyP87g0z4=";
#
# buildPhase = ''
# npm install
# cp ${pkgs.writeText "src/routes/config.json" settings} src/routes/config.json
# npm run build
# mkdir $out
# mv build $out
# '';
#
# meta = {
# description = "homepage";
# homepage = "https://github.com/anotherhadi/homepage";
# };
# };
src = pkgs.fetchFromGitHub {
owner = "anotherhadi";
repo = "homepage";
rev = "b77d35ed3596eb451bd2ec78063d7cc6e73c773d";
hash = "sha256-j/40922kfAh6zqJ4IRYpr66YXNNYsxuXwZ0aiJFJea0=";
};
# npmDepsHash = lib.fakeHash;
npmDepsHash = "sha256-bG+CHTq2Rst3JMxsjAC81KhK+G7WwsTVD1eyP87g0z4=";
buildPhase = ''
npm install
cp ${
pkgs.writeText "src/routes/config.json" settings
} src/routes/config.json
npm run build
mkdir $out
mv build $out
'';
meta = {
description = "homepage";
homepage = "https://github.com/anotherhadi/homepage";
};
};
in {
in
{
imports = [ ./duckduckgo-colorscheme.nix ];
@@ -99,7 +98,7 @@ in {
};
quickmarks = {
home = "${homepage}/build/index.html";
# home = "${homepage}/build/index.html";
server = "https://home.anotherhadi.com";
jack = "https://home.anotherhadi.com";
mynixos = "https://mynixos.com";
@@ -119,14 +118,13 @@ in {
};
settings = {
url = {
default_page = "${homepage}/build/index.html";
start_pages = [ "${homepage}/build/index.html" ];
};
# url = {
# default_page = "${homepage}/build/index.html";
# start_pages = [ "${homepage}/build/index.html" ];
# };
colors = {
webpage.preferred_color_scheme =
"dark"; # Enable dark mode for websites that support it
webpage.preferred_color_scheme = "dark"; # Enable dark mode for websites that support it
};
statusbar.show = "in-mode";
@@ -157,7 +155,9 @@ in {
remove_finished = 0;
};
hints = { radius = 1; };
hints = {
radius = 1;
};
scrolling = {
bar = "never";
@@ -178,7 +178,7 @@ in {
keyBindings = {
normal = {
"gh" = "open ${homepage}/build/index.html";
# "gh" = "open ${homepage}/build/index.html";
"gs" = "open https://home.anotherhadi.com";
" p" = "tab-move -";