Compare commits

..

No commits in common. "4cbde560d7205ee8ad123bc86b8a82eb5fbc4976" and "2fd28cab959abea0e78f35a2b81d9612d0c39b40" have entirely different histories.

5 changed files with 62 additions and 59 deletions

View file

@ -36,11 +36,19 @@
};
# HM managed fonts
#
# The reason I use Source Han instead of Noto CJK,
# is because I heard from #archlinux-cn, Adobe packages font better.
# You can 100% use noto-fonts-cjk-{sans,serif} if you prefer consistency/other reason.
#
# Using VF to reduce closure size:
# Version 1579 -> 1580:
# home-manager: -10.4 KiB
# inter: -12695.6 KiB
# jetbrains-mono: -7621.0 KiB
fonts.fontconfig.enable = true;
home.packages = with pkgs; [
(nerdfonts.override {
fonts = ["NerdFontsSymbolsOnly"];
})
(nerdfonts.override {fonts = ["NerdFontsSymbolsOnly"];})
(inter.overrideAttrs {
installPhase = ''
runHook preInstall
@ -55,22 +63,9 @@
runHook postInstall
'';
})
(source-sans.overrideAttrs {
installPhase = ''
runHook preInstall
install -Dm444 VF/*.otf -t $out/share/fonts/variable
runHook postInstall
'';
})
(source-serif.overrideAttrs {
installPhase = ''
runHook preInstall
install -Dm444 VAR/*.otf -t $out/share/fonts/variable
runHook postInstall
'';
})
noto-fonts
noto-fonts-color-emoji
source-han-sans-vf-otf
source-han-serif-vf-otf
noto-fonts-color-emoji
];
}

View file

@ -10,7 +10,6 @@
<alias binding="strong">
<family>serif</family>
<prefer>
<family>Source Serif 4 Variable</family>
<family>Source Han Serif SC VF</family>
<family>Noto Color Emoji</family>
</prefer>

View file

@ -107,8 +107,3 @@ rss.ny4.dev {
import default
reverse_proxy localhost:9300
}
reddit.ny4.dev {
import default
reverse_proxy localhost:9400
}

View file

@ -184,7 +184,6 @@
database.passwordFile = toString (pkgs.writeText "password" "keycloak");
};
# TODO: eventually, use blog homepage
services.homepage-dashboard = {
enable = true;
listenPort = 9200;
@ -204,17 +203,6 @@
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/";
@ -223,19 +211,15 @@
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";
"Ntfy" = {
description = getDesc pkgs.ntfy;
href = "https://ntfy.ny4.dev/";
};
"Mumble" = {
description = "${getDesc pkgs.mumble} (Connect with tyo0.ny4.dev:64738)";
};
};
"Private stuff" = mapAttrsToList' {
"Forgejo" = {
description = getDesc pkgs.forgejo;
href = "https://git.ny4.dev/";
};
"Mastodon" = rec {
description = getDesc pkgs.mastodon;
href = "https://mastodon.ny4.dev/";
@ -246,18 +230,25 @@
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;
description = getDesc inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.pixivfe;
href = "https://pixiv.ny4.dev";
};
"Uptime Kuma" = {
description = getDesc pkgs.uptime-kuma;
href = "https://uptime.ny4.dev/";
};
"Forgejo" = {
description = getDesc pkgs.forgejo;
href = "https://git.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";
};
};
};
@ -287,13 +278,6 @@
};
};
services.libreddit = {
enable = true;
package = pkgs.redlib;
address = "127.0.0.1";
port = 9400;
};
### Prevents me from bankrupt
# https://fmk.im/p/shutdown-aws/
services.vnstat.enable = true;

View file

@ -1,3 +1,33 @@
User-agent: Amazonbot
Disallow: /
User-agent: CCBot
Disallow: /
User-agent: ChatGPT-User
Disallow: /
User-agent: Claude-Web
Disallow: /
User-agent: FacebookBot
Disallow: /
User-agent: GPTBot
Disallow: /
User-agent: Google-Extended
Disallow: /
User-agent: Omgilibot
Disallow: /
User-agent: anthopic-ai
Disallow: /
User-agent: cohere-ai
Disallow: /
User-Agent: *
Disallow: /harming/humans
Disallow: /ignoring/human/orders