From 4723c711df4043292ea1719df6588e908b4d595a Mon Sep 17 00:00:00 2001 From: xqtc Date: Sun, 21 Jul 2024 21:29:06 +0200 Subject: [PATCH] idk --- home/modules/nixvim.nix | 1 + hosts/x86_64-linux/beleth/default.nix | 10 ++++++++++ justfile | 1 + 3 files changed, 12 insertions(+) diff --git a/home/modules/nixvim.nix b/home/modules/nixvim.nix index 2affdbb..dd54644 100644 --- a/home/modules/nixvim.nix +++ b/home/modules/nixvim.nix @@ -68,6 +68,7 @@ }; }; }; + rustaceanvim.settings.server.default_settings.rust-analyzer.diagnostics.disabled = [ "inactive-code" ]; lsp = { enable = true; inlayHints = true; diff --git a/hosts/x86_64-linux/beleth/default.nix b/hosts/x86_64-linux/beleth/default.nix index a0c8951..8c00754 100644 --- a/hosts/x86_64-linux/beleth/default.nix +++ b/hosts/x86_64-linux/beleth/default.nix @@ -78,6 +78,16 @@ with lib; { file_server ''; }; + "cheats-rs.heroin.trade" = { + extraConfig = '' + root * /var/www/cheats-rs/public/ + handle_errors { + rewrite * /404.html + file_server + } + file_server + ''; + }; "syncthing.heroin.trade" = { extraConfig = '' reverse_proxy http://localhost:8384 { diff --git a/justfile b/justfile index 9cbee6f..9019268 100644 --- a/justfile +++ b/justfile @@ -22,6 +22,7 @@ beleth: # if [ $arch_sanitized == "x86_64-linux" ]; then nixos-rebuild switch --flake '.#beleth' --build-host {{beleth-host}} --target-host {{beleth-host}}; ssh {{beleth-user-host}} "cd && cd nixos-config && git pull && cd && sh build_website.sh"; + ssh {{beleth-user-host}} "cd && cd /var/www/cheats-rs/ && git pull && zola build"; exit # fi # @echo "Host arch needs to be 'x86_64-linux'! Aborting...";