Compare commits
No commits in common. "99ee0e4ea67d0d70bc41b85729085fc75f807f14" and "faf7738627808297cec0ef879a10a7758f2185a3" have entirely different histories.
99ee0e4ea6
...
faf7738627
6 changed files with 46 additions and 80 deletions
|
@ -23,63 +23,8 @@
|
||||||
sponsorblock
|
sponsorblock
|
||||||
modernx-zydezu
|
modernx-zydezu
|
||||||
])
|
])
|
||||||
++ lib.optional pkgs.stdenv.hostPlatform.isLinux pkgs.mpvScripts.mpris;
|
++ lib.optionals pkgs.stdenv.hostPlatform.isLinux (with pkgs.mpvScripts; [
|
||||||
|
mpris
|
||||||
bindings = let
|
]);
|
||||||
inherit (pkgs) anime4k;
|
|
||||||
setShader = message: files: ''no-osd change-list glsl-shaders set "${lib.concatStringsSep ":" files}"; show-text "${message}"'';
|
|
||||||
in {
|
|
||||||
"CTRL+1" = setShader "Anime4K: Mode A (Fast)" [
|
|
||||||
"${anime4k}/Anime4K_Clamp_Highlights.glsl"
|
|
||||||
"${anime4k}/Anime4K_Restore_CNN_M.glsl"
|
|
||||||
"${anime4k}/Anime4K_Upscale_CNN_x2_M.glsl"
|
|
||||||
"${anime4k}/Anime4K_AutoDownscalePre_x2.glsl"
|
|
||||||
"${anime4k}/Anime4K_AutoDownscalePre_x4.glsl"
|
|
||||||
"${anime4k}/Anime4K_Upscale_CNN_x2_S.glsl"
|
|
||||||
];
|
|
||||||
"CTRL+2" = setShader "Anime4K: Mode B (Fast)" [
|
|
||||||
"${anime4k}/Anime4K_Clamp_Highlights.glsl"
|
|
||||||
"${anime4k}/Anime4K_Restore_CNN_Soft_M.glsl"
|
|
||||||
"${anime4k}/Anime4K_Upscale_CNN_x2_M.glsl"
|
|
||||||
"${anime4k}/Anime4K_AutoDownscalePre_x2.glsl"
|
|
||||||
"${anime4k}/Anime4K_AutoDownscalePre_x4.glsl"
|
|
||||||
"${anime4k}/Anime4K_Upscale_CNN_x2_S.glsl"
|
|
||||||
];
|
|
||||||
"CTRL+3" = setShader "Anime4K: Mode C (Fast)" [
|
|
||||||
"${anime4k}/Anime4K_Clamp_Highlights.glsl"
|
|
||||||
"${anime4k}/Anime4K_Upscale_Denoise_CNN_x2_M.glsl "
|
|
||||||
"${anime4k}/Anime4K_AutoDownscalePre_x2.glsl"
|
|
||||||
"${anime4k}/Anime4K_AutoDownscalePre_x4.glsl"
|
|
||||||
"${anime4k}/Anime4K_Upscale_CNN_x2_S.glsl"
|
|
||||||
];
|
|
||||||
"CTRL+4" = setShader "Anime4K: Mode A+A (Fast)" [
|
|
||||||
"${anime4k}/Anime4K_Clamp_Highlights.glsl"
|
|
||||||
"${anime4k}/Anime4K_Restore_CNN_M.glsl"
|
|
||||||
"${anime4k}/Anime4K_Upscale_CNN_x2_M.glsl"
|
|
||||||
"${anime4k}/Anime4K_Restore_CNN_S.glsl"
|
|
||||||
"${anime4k}/Anime4K_AutoDownscalePre_x2.glsl"
|
|
||||||
"${anime4k}/Anime4K_AutoDownscalePre_x4.glsl"
|
|
||||||
"${anime4k}/Anime4K_Upscale_CNN_x2_S.glsl"
|
|
||||||
];
|
|
||||||
"CTRL+5" = setShader "Anime4K: Mode B+B (Fast)" [
|
|
||||||
"${anime4k}/Anime4K_Clamp_Highlights.glsl"
|
|
||||||
"${anime4k}/Anime4K_Restore_CNN_Soft_M.glsl"
|
|
||||||
"${anime4k}/Anime4K_Upscale_CNN_x2_M.glsl"
|
|
||||||
"${anime4k}/Anime4K_AutoDownscalePre_x2.glsl"
|
|
||||||
"${anime4k}/Anime4K_AutoDownscalePre_x4.glsl"
|
|
||||||
"${anime4k}/Anime4K_Restore_CNN_Soft_S.glsl"
|
|
||||||
"${anime4k}/Anime4K_Upscale_CNN_x2_S.glsl"
|
|
||||||
];
|
|
||||||
"CTRL+6" = setShader "Anime4K: Mode C+A (Fast)" [
|
|
||||||
"${anime4k}/Anime4K_Clamp_Highlights.glsl"
|
|
||||||
"${anime4k}/Anime4K_Upscale_Denoise_CNN_x2_M.glsl"
|
|
||||||
"${anime4k}/Anime4K_AutoDownscalePre_x2.glsl"
|
|
||||||
"${anime4k}/Anime4K_AutoDownscalePre_x4.glsl"
|
|
||||||
"${anime4k}/Anime4K_Restore_CNN_S.glsl"
|
|
||||||
"${anime4k}/Anime4K_Upscale_CNN_x2_S.glsl"
|
|
||||||
];
|
|
||||||
|
|
||||||
"CTRL+0" = ''no-osd change-list glsl-shaders clr ""; show-text "GLSL shaders cleared"'';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,27 +1,28 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# lsp
|
# lsp
|
||||||
alejandra
|
|
||||||
deadnix
|
|
||||||
nil
|
nil
|
||||||
|
alejandra
|
||||||
statix
|
statix
|
||||||
|
deadnix
|
||||||
|
|
||||||
# nixpkgs PRs
|
# nixpkgs PRs
|
||||||
nix-init
|
|
||||||
nix-update
|
|
||||||
nixfmt-rfc-style
|
nixfmt-rfc-style
|
||||||
|
nix-update
|
||||||
|
nix-init
|
||||||
nixpkgs-review
|
nixpkgs-review
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
colmena
|
|
||||||
comma
|
|
||||||
nh
|
nh
|
||||||
nix-index
|
|
||||||
nix-output-monitor
|
nix-output-monitor
|
||||||
|
nix-index
|
||||||
nix-tree
|
nix-tree
|
||||||
|
comma
|
||||||
sops
|
sops
|
||||||
|
colmena
|
||||||
];
|
];
|
||||||
|
|
||||||
# nh
|
# for `nh`
|
||||||
home.sessionVariables.FLAKE = "/home/guanranwang/Documents/Projects/flake";
|
# yes, i know, weird and long path
|
||||||
|
home.sessionVariables.FLAKE = "/home/guanranwang/Documents/Projects/git-repos/github.com/Guanran928/flake";
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,18 @@
|
||||||
(default) {
|
(default) {
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
|
|
||||||
|
header {
|
||||||
|
# https://observatory.mozilla.org/analyze/ny4.dev
|
||||||
|
# https://infosec.mozilla.org/guidelines/web_security
|
||||||
|
# https://caddyserver.com/docs/caddyfile/directives/header#examples
|
||||||
|
|
||||||
|
?Content-Security-Policy "default-src https: blob: 'unsafe-eval' 'unsafe-inline'; object-src 'none'"
|
||||||
|
?Permissions-Policy interest-Hpcohort=()
|
||||||
|
?Strict-Transport-Security max-age=31536000;
|
||||||
|
?X-Content-Type-Options nosniff
|
||||||
|
?X-Frame-Options DENY
|
||||||
|
}
|
||||||
|
|
||||||
handle_path /robots.txt {
|
handle_path /robots.txt {
|
||||||
file_server * {
|
file_server * {
|
||||||
root /var/www/robots/robots.txt
|
root /var/www/robots/robots.txt
|
||||||
|
|
|
@ -8,6 +8,19 @@
|
||||||
|
|
||||||
(default) {
|
(default) {
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
|
|
||||||
|
header {
|
||||||
|
# https://observatory.mozilla.org/analyze/ny4.dev
|
||||||
|
# https://infosec.mozilla.org/guidelines/web_security
|
||||||
|
# https://caddyserver.com/docs/caddyfile/directives/header#examples
|
||||||
|
|
||||||
|
?Content-Security-Policy "default-src https: blob: 'unsafe-eval' 'unsafe-inline'; object-src 'none'"
|
||||||
|
?Permissions-Policy interest-Hpcohort=()
|
||||||
|
?Strict-Transport-Security max-age=31536000;
|
||||||
|
?X-Content-Type-Options nosniff
|
||||||
|
?X-Frame-Options DENY
|
||||||
|
}
|
||||||
|
|
||||||
handle_path /robots.txt {
|
handle_path /robots.txt {
|
||||||
file_server * {
|
file_server * {
|
||||||
root /var/www/robots/robots.txt
|
root /var/www/robots/robots.txt
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
"searx/environment" = {
|
"searx/environment" = {
|
||||||
restartUnits = ["searx.service"];
|
restartUnits = ["searx.service"];
|
||||||
};
|
};
|
||||||
"miniflux/environment" = {
|
"miniflux/credentials" = {
|
||||||
restartUnits = ["miniflux.service"];
|
restartUnits = ["miniflux.service"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -69,10 +69,10 @@
|
||||||
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.70";
|
||||||
src = oldAttrs.src.overrideAttrs {
|
src = oldAttrs.src.overrideAttrs {
|
||||||
outputHash = "sha256-UzSqChCa94LqaQpMzwQGPX3G2xxOpP3jp5OvR1iBzRs=";
|
outputHash = "sha256-kx6xQIuYSXkkBTYb+fZLL3cuHFcNj7RkC60o6Fyp8LI=";
|
||||||
};
|
};
|
||||||
offlineCache = oldAttrs.offlineCache.overrideAttrs {
|
offlineCache = oldAttrs.offlineCache.overrideAttrs {
|
||||||
outputHash = "sha256-M4FTUtx7vpZIEdu/NM98/zIDGyPOtfocrj29/qChyyQ=";
|
outputHash = "sha256-q/KbpU/haBhXZbGBITLYSywCluwN6ZZarVLmzB9tDN8=";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -285,16 +285,10 @@
|
||||||
|
|
||||||
services.miniflux = {
|
services.miniflux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
adminCredentialsFile = config.sops.secrets."miniflux/environment".path;
|
adminCredentialsFile = config.sops.secrets."miniflux/credentials".path;
|
||||||
config = {
|
config = {
|
||||||
LISTEN_ADDR = "127.0.0.1:9300";
|
LISTEN_ADDR = "127.0.0.1:9300";
|
||||||
BASE_URL = "https://rss.ny4.dev";
|
BASE_URL = "https://rss.ny4.dev";
|
||||||
|
|
||||||
OAUTH2_PROVIDER = "oidc";
|
|
||||||
OAUTH2_CLIENT_ID = "miniflux";
|
|
||||||
# OAUTH2_CLIENT_SECRET = "replace_me"; # EnvironmentFile
|
|
||||||
OAUTH2_REDIRECT_URL = "https://rss.ny4.dev/oauth2/oidc/callback";
|
|
||||||
OAUTH2_OIDC_DISCOVERY_ENDPOINT = "https://id.ny4.dev/realms/ny4";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ searx:
|
||||||
pixivfe:
|
pixivfe:
|
||||||
environment: ENC[AES256_GCM,data:/Q/rShBXlXkWOOP+7OhKtKTSrp2zNizMaAOyKfWbKgJMHTjNfmMtRuGKRez9KXM5MDIMIF9iJSQ=,iv:whIAkaWiZcZT4HfmJw4qA+fbQ9zHFp+kTuHxQDE3XoU=,tag:FroLTMtNwGlvZw3osftj3A==,type:str]
|
environment: ENC[AES256_GCM,data:/Q/rShBXlXkWOOP+7OhKtKTSrp2zNizMaAOyKfWbKgJMHTjNfmMtRuGKRez9KXM5MDIMIF9iJSQ=,iv:whIAkaWiZcZT4HfmJw4qA+fbQ9zHFp+kTuHxQDE3XoU=,tag:FroLTMtNwGlvZw3osftj3A==,type:str]
|
||||||
miniflux:
|
miniflux:
|
||||||
environment: ENC[AES256_GCM,data:eT1rVeXbDANk/+9xmxmTHvMNofyplNGvVFgTj4lFQlJSHTi+br1qfg0tddf5aCtE8cNGt0fNm63qguI2Df/+KWENhb0vCpjRG7zryfBhEwMP5jkVgDnaHYolS1z3OmhlEpE=,iv:tWAUCtlk8wDGWGmn7j00QOVwjPYDkTPDGpyxd1pP6ig=,tag:gLNdzK9GZ/m5mWL5YNrzyQ==,type:str]
|
credentials: ENC[AES256_GCM,data:vYd964LCV4NCZxbuIhdXznsl7n6jMPIFjWvo0tTTm4V3la93MN4DYLUPy4U=,iv:gqBCf7uqigTxdLs8oSd/KkNb56luUDrtrAOxxUuJgUE=,tag:LzniGyWeZxHrpQAaEOQP8A==,type:str]
|
||||||
sops:
|
sops:
|
||||||
kms: []
|
kms: []
|
||||||
gcp_kms: []
|
gcp_kms: []
|
||||||
|
@ -30,8 +30,8 @@ sops:
|
||||||
R1ZMMG1jWnljNWl5Nk5MU3RCMlFPYjgKL1ScxzF0D1R18H+oe6dlxUGlL9myHEr3
|
R1ZMMG1jWnljNWl5Nk5MU3RCMlFPYjgKL1ScxzF0D1R18H+oe6dlxUGlL9myHEr3
|
||||||
3HBPoapKCSQ/cT7Xma4bsWD1AVJIf1Ak+MeCs9ItGwKAcnd9JYZ9KA==
|
3HBPoapKCSQ/cT7Xma4bsWD1AVJIf1Ak+MeCs9ItGwKAcnd9JYZ9KA==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
lastmodified: "2024-07-18T09:46:47Z"
|
lastmodified: "2024-07-10T17:25:33Z"
|
||||||
mac: ENC[AES256_GCM,data:EJsQO/XsF8SpyEP8s9u1DXQkSsqodknF9ibl94/kOOIutx9ML+L0ltYA3+/eW17K9Mwvy6CyojKiQLiYgL2RLJd1zxZKedmp+l3klu1im8Wocwh073nemHIR1J6H5hoE6y36tDCXRrMDbWIfMjvlp6FlhFsI/n3Na1iCDall6mA=,iv:O9Y0j5G3sE67Bfz0MhcPYYpU71cGgtIdde8a1WQiigs=,tag:eNIvBVu7LPnC5s2f3MzptQ==,type:str]
|
mac: ENC[AES256_GCM,data:R8V7uckbpDjzukq7W0Tjj3yYCTynU4Ih0C8HiKIf1RQjS0XscJ/3dU5fhalJuODdBNi3aAar0qiX4MJsNexanQxltjJGj01pcHNrM1KUnOPoxmYR8oK64fecQDp8sWahXWfqFFurCsVg1ZHTJM1tMNgbjGDIcTSxZcto/1N3Zwc=,iv:eQge+cAxipyd7kFY7elVATHsymg/JFh9CCYItkkPn0I=,tag:LBR9nNW6RqekGqnLxfyB9w==,type:str]
|
||||||
pgp: []
|
pgp: []
|
||||||
unencrypted_suffix: _unencrypted
|
unencrypted_suffix: _unencrypted
|
||||||
version: 3.9.0
|
version: 3.9.0
|
||||||
|
|
Loading…
Reference in a new issue