Compare commits
3 commits
2fd28cab95
...
4cbde560d7
Author | SHA1 | Date | |
---|---|---|---|
4cbde560d7 | |||
c9180d8a1a | |||
d2027536ce |
5 changed files with 59 additions and 62 deletions
|
@ -36,19 +36,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# 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 {fonts = ["NerdFontsSymbolsOnly"];})
|
(nerdfonts.override {
|
||||||
|
fonts = ["NerdFontsSymbolsOnly"];
|
||||||
|
})
|
||||||
(inter.overrideAttrs {
|
(inter.overrideAttrs {
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
@ -63,9 +55,22 @@
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
noto-fonts
|
(source-sans.overrideAttrs {
|
||||||
noto-fonts-color-emoji
|
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
|
||||||
|
'';
|
||||||
|
})
|
||||||
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,6 +10,7 @@
|
||||||
<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,3 +107,8 @@ 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,6 +184,7 @@
|
||||||
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;
|
||||||
|
@ -203,6 +204,17 @@
|
||||||
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/";
|
||||||
|
@ -211,15 +223,19 @@
|
||||||
description = getDesc pkgs.wastebin;
|
description = getDesc pkgs.wastebin;
|
||||||
href = "https://pb.ny4.dev/";
|
href = "https://pb.ny4.dev/";
|
||||||
};
|
};
|
||||||
"Ntfy" = {
|
|
||||||
description = getDesc pkgs.ntfy;
|
|
||||||
href = "https://ntfy.ny4.dev/";
|
|
||||||
};
|
|
||||||
"Mumble" = {
|
|
||||||
description = "${getDesc pkgs.mumble} (Connect with tyo0.ny4.dev:64738)";
|
|
||||||
};
|
};
|
||||||
|
"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' {
|
"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/";
|
||||||
|
@ -230,25 +246,18 @@
|
||||||
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.packages.${pkgs.stdenv.hostPlatform.system}.pixivfe;
|
description = getDesc inputs.self.legacyPackages.${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";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -278,6 +287,13 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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,33 +1,3 @@
|
||||||
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