nixos: use blog as homepage
This commit is contained in:
parent
820b047f50
commit
097067b356
2 changed files with 8 additions and 86 deletions
|
@ -17,13 +17,13 @@
|
||||||
|
|
||||||
www.ny4.dev {
|
www.ny4.dev {
|
||||||
import default
|
import default
|
||||||
redir https://ny4.dev
|
redir https://blog.ny4.dev
|
||||||
}
|
}
|
||||||
|
|
||||||
# get the certificate for hysteria
|
# get the certificate for hysteria
|
||||||
tyo0.ny4.dev {
|
tyo0.ny4.dev {
|
||||||
import default
|
import default
|
||||||
redir https://ny4.dev
|
redir https://blog.ny4.dev
|
||||||
}
|
}
|
||||||
|
|
||||||
ny4.dev {
|
ny4.dev {
|
||||||
|
@ -42,8 +42,9 @@ ny4.dev {
|
||||||
header /.well-known/webfinger Access-Control-Allow-Origin *
|
header /.well-known/webfinger Access-Control-Allow-Origin *
|
||||||
redir /.well-known/webfinger https://mastodon.ny4.dev{uri} permanent
|
redir /.well-known/webfinger https://mastodon.ny4.dev{uri} permanent
|
||||||
|
|
||||||
# Homepage Dashboard
|
# TODO: Build Hugo blog with Nix
|
||||||
reverse_proxy localhost:9200
|
# How do I use hugo modules without using FOD?
|
||||||
|
redir https://blog.ny4.dev
|
||||||
}
|
}
|
||||||
|
|
||||||
searx.ny4.dev {
|
searx.ny4.dev {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
inputs,
|
|
||||||
modulesPath,
|
modulesPath,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
|
@ -65,12 +64,12 @@
|
||||||
|
|
||||||
"element" = pkgs.element-web.override {
|
"element" = pkgs.element-web.override {
|
||||||
element-web-unwrapped = pkgs.element-web-unwrapped.overrideAttrs (oldAttrs: {
|
element-web-unwrapped = pkgs.element-web-unwrapped.overrideAttrs (oldAttrs: {
|
||||||
version = "1.11.70";
|
version = "1.11.72-rc.0";
|
||||||
src = oldAttrs.src.overrideAttrs {
|
src = oldAttrs.src.overrideAttrs {
|
||||||
outputHash = "sha256-UzSqChCa94LqaQpMzwQGPX3G2xxOpP3jp5OvR1iBzRs=";
|
outputHash = "sha256-IftQCQ3m7w2F9/q0n2W9JMIouu79cYkwVRLjWY1CQGg=";
|
||||||
};
|
};
|
||||||
offlineCache = oldAttrs.offlineCache.overrideAttrs {
|
offlineCache = oldAttrs.offlineCache.overrideAttrs {
|
||||||
outputHash = "sha256-M4FTUtx7vpZIEdu/NM98/zIDGyPOtfocrj29/qChyyQ=";
|
outputHash = "sha256-xBpwEbHeJSVKsEvmH2SNZOtEZkPRgPIiChbTkmjJQa4=";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -186,84 +185,6 @@
|
||||||
database.passwordFile = toString (pkgs.writeText "password" "keycloak");
|
database.passwordFile = toString (pkgs.writeText "password" "keycloak");
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: eventually, use blog homepage
|
|
||||||
services.homepage-dashboard = {
|
|
||||||
enable = true;
|
|
||||||
listenPort = 9200;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
useEqualHeights = true;
|
|
||||||
cardBlur = "sm";
|
|
||||||
layout."Services" = {
|
|
||||||
style = "row";
|
|
||||||
columns = "4";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services = let
|
|
||||||
getDesc = pkg: pkg.meta.description;
|
|
||||||
mapAttrsToList' = lib.mapAttrsToList (name: value: {"${name}" = value;}); # also sorts the thing alphabetically
|
|
||||||
in
|
|
||||||
mapAttrsToList' {
|
|
||||||
"Services" = mapAttrsToList' {
|
|
||||||
"Mumble" = {
|
|
||||||
description = "${getDesc pkgs.mumble} (Connect with tyo0.ny4.dev:64738)";
|
|
||||||
};
|
|
||||||
"Ntfy" = {
|
|
||||||
description = getDesc pkgs.ntfy;
|
|
||||||
href = "https://ntfy.ny4.dev/";
|
|
||||||
};
|
|
||||||
"Redlib" = {
|
|
||||||
description = getDesc pkgs.redlib;
|
|
||||||
href = "https://reddit.ny4.dev/";
|
|
||||||
};
|
|
||||||
"SearXNG" = {
|
|
||||||
description = getDesc pkgs.searxng;
|
|
||||||
href = "https://searx.ny4.dev/";
|
|
||||||
};
|
|
||||||
"Wastebin" = {
|
|
||||||
description = getDesc pkgs.wastebin;
|
|
||||||
href = "https://pb.ny4.dev/";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"Links" = mapAttrsToList' {
|
|
||||||
"Blog".href = "https://blog.ny4.dev/";
|
|
||||||
"Forgejo".href = "https://git.ny4.dev/nyancat";
|
|
||||||
"GitHub".href = "https://github.com/Guanran928";
|
|
||||||
"Mastodon".herf = "https://mastodon.ny4.dev/@nyancat";
|
|
||||||
"Matrix".href = "https://matrix.to/#/@nyancat:ny4.dev";
|
|
||||||
};
|
|
||||||
"Private stuff" = mapAttrsToList' {
|
|
||||||
"Forgejo" = {
|
|
||||||
description = getDesc pkgs.forgejo;
|
|
||||||
href = "https://git.ny4.dev/";
|
|
||||||
};
|
|
||||||
"Mastodon" = rec {
|
|
||||||
description = getDesc pkgs.mastodon;
|
|
||||||
href = "https://mastodon.ny4.dev/";
|
|
||||||
widget.type = "mastodon";
|
|
||||||
widget.url = href;
|
|
||||||
};
|
|
||||||
"Matrix" = {
|
|
||||||
description = getDesc pkgs.element-web;
|
|
||||||
href = "https://element.ny4.dev/";
|
|
||||||
};
|
|
||||||
"Miniflux" = {
|
|
||||||
description = getDesc pkgs.miniflux;
|
|
||||||
href = "https://rss.ny4.dev/";
|
|
||||||
};
|
|
||||||
"PixivFE" = {
|
|
||||||
description = getDesc inputs.self.legacyPackages.${pkgs.stdenv.hostPlatform.system}.pixivfe;
|
|
||||||
href = "https://pixiv.ny4.dev";
|
|
||||||
};
|
|
||||||
"Uptime Kuma" = {
|
|
||||||
description = getDesc pkgs.uptime-kuma;
|
|
||||||
href = "https://uptime.ny4.dev/";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.forgejo = {
|
services.forgejo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
database.type = "postgres";
|
database.type = "postgres";
|
||||||
|
|
Loading…
Reference in a new issue