Compare commits
No commits in common. "4cbde560d7205ee8ad123bc86b8a82eb5fbc4976" and "2fd28cab959abea0e78f35a2b81d9612d0c39b40" have entirely different histories.
4cbde560d7
...
2fd28cab95
5 changed files with 62 additions and 59 deletions
|
@ -36,11 +36,19 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# HM managed fonts
|
# 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;
|
fonts.fontconfig.enable = true;
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
(nerdfonts.override {
|
(nerdfonts.override {fonts = ["NerdFontsSymbolsOnly"];})
|
||||||
fonts = ["NerdFontsSymbolsOnly"];
|
|
||||||
})
|
|
||||||
(inter.overrideAttrs {
|
(inter.overrideAttrs {
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
@ -55,22 +63,9 @@
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
(source-sans.overrideAttrs {
|
noto-fonts
|
||||||
installPhase = ''
|
noto-fonts-color-emoji
|
||||||
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
|
|
||||||
'';
|
|
||||||
})
|
|
||||||
source-han-sans-vf-otf
|
source-han-sans-vf-otf
|
||||||
source-han-serif-vf-otf
|
source-han-serif-vf-otf
|
||||||
noto-fonts-color-emoji
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
<alias binding="strong">
|
<alias binding="strong">
|
||||||
<family>serif</family>
|
<family>serif</family>
|
||||||
<prefer>
|
<prefer>
|
||||||
<family>Source Serif 4 Variable</family>
|
|
||||||
<family>Source Han Serif SC VF</family>
|
<family>Source Han Serif SC VF</family>
|
||||||
<family>Noto Color Emoji</family>
|
<family>Noto Color Emoji</family>
|
||||||
</prefer>
|
</prefer>
|
||||||
|
|
|
@ -107,8 +107,3 @@ rss.ny4.dev {
|
||||||
import default
|
import default
|
||||||
reverse_proxy localhost:9300
|
reverse_proxy localhost:9300
|
||||||
}
|
}
|
||||||
|
|
||||||
reddit.ny4.dev {
|
|
||||||
import default
|
|
||||||
reverse_proxy localhost:9400
|
|
||||||
}
|
|
||||||
|
|
|
@ -184,7 +184,6 @@
|
||||||
database.passwordFile = toString (pkgs.writeText "password" "keycloak");
|
database.passwordFile = toString (pkgs.writeText "password" "keycloak");
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: eventually, use blog homepage
|
|
||||||
services.homepage-dashboard = {
|
services.homepage-dashboard = {
|
||||||
enable = true;
|
enable = true;
|
||||||
listenPort = 9200;
|
listenPort = 9200;
|
||||||
|
@ -204,17 +203,6 @@
|
||||||
in
|
in
|
||||||
mapAttrsToList' {
|
mapAttrsToList' {
|
||||||
"Services" = 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" = {
|
"SearXNG" = {
|
||||||
description = getDesc pkgs.searxng;
|
description = getDesc pkgs.searxng;
|
||||||
href = "https://searx.ny4.dev/";
|
href = "https://searx.ny4.dev/";
|
||||||
|
@ -223,19 +211,15 @@
|
||||||
description = getDesc pkgs.wastebin;
|
description = getDesc pkgs.wastebin;
|
||||||
href = "https://pb.ny4.dev/";
|
href = "https://pb.ny4.dev/";
|
||||||
};
|
};
|
||||||
};
|
"Ntfy" = {
|
||||||
"Links" = mapAttrsToList' {
|
description = getDesc pkgs.ntfy;
|
||||||
"Blog".href = "https://blog.ny4.dev/";
|
href = "https://ntfy.ny4.dev/";
|
||||||
"Forgejo".href = "https://git.ny4.dev/nyancat";
|
};
|
||||||
"GitHub".href = "https://github.com/Guanran928";
|
"Mumble" = {
|
||||||
"Mastodon".herf = "https://mastodon.ny4.dev/@nyancat";
|
description = "${getDesc pkgs.mumble} (Connect with tyo0.ny4.dev:64738)";
|
||||||
"Matrix".href = "https://matrix.to/#/@nyancat:ny4.dev";
|
};
|
||||||
};
|
};
|
||||||
"Private stuff" = mapAttrsToList' {
|
"Private stuff" = mapAttrsToList' {
|
||||||
"Forgejo" = {
|
|
||||||
description = getDesc pkgs.forgejo;
|
|
||||||
href = "https://git.ny4.dev/";
|
|
||||||
};
|
|
||||||
"Mastodon" = rec {
|
"Mastodon" = rec {
|
||||||
description = getDesc pkgs.mastodon;
|
description = getDesc pkgs.mastodon;
|
||||||
href = "https://mastodon.ny4.dev/";
|
href = "https://mastodon.ny4.dev/";
|
||||||
|
@ -246,18 +230,25 @@
|
||||||
description = getDesc pkgs.element-web;
|
description = getDesc pkgs.element-web;
|
||||||
href = "https://element.ny4.dev/";
|
href = "https://element.ny4.dev/";
|
||||||
};
|
};
|
||||||
"Miniflux" = {
|
|
||||||
description = getDesc pkgs.miniflux;
|
|
||||||
href = "https://rss.ny4.dev/";
|
|
||||||
};
|
|
||||||
"PixivFE" = {
|
"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";
|
href = "https://pixiv.ny4.dev";
|
||||||
};
|
};
|
||||||
"Uptime Kuma" = {
|
"Uptime Kuma" = {
|
||||||
description = getDesc pkgs.uptime-kuma;
|
description = getDesc pkgs.uptime-kuma;
|
||||||
href = "https://uptime.ny4.dev/";
|
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
|
### Prevents me from bankrupt
|
||||||
# https://fmk.im/p/shutdown-aws/
|
# https://fmk.im/p/shutdown-aws/
|
||||||
services.vnstat.enable = true;
|
services.vnstat.enable = true;
|
||||||
|
|
|
@ -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: *
|
User-Agent: *
|
||||||
Disallow: /harming/humans
|
Disallow: /harming/humans
|
||||||
Disallow: /ignoring/human/orders
|
Disallow: /ignoring/human/orders
|
||||||
|
|
Loading…
Reference in a new issue