diff --git a/hosts/x86_64-linux/beleth/default.nix b/hosts/x86_64-linux/beleth/default.nix index 5dd8ef7..7515fda 100644 --- a/hosts/x86_64-linux/beleth/default.nix +++ b/hosts/x86_64-linux/beleth/default.nix @@ -13,6 +13,7 @@ with lib; { ./calibre-web.nix ./transmission.nix ./lanrarari.nix + ./uptime.nix ../../gc.nix ../../../common ]; @@ -21,28 +22,31 @@ with lib; { enable = true; email = "xqtc@tutanota.com"; configFile = pkgs.writeText "Caddyfile" '' - heroin.trade { - root * /var/www/website/build/ - file_server - } - syncthing.heroin.trade { - reverse_proxy http://localhost:8384 { - header_up Some-Header "localhost" + heroin.trade { + root * /var/www/website/public/ + file_server } - } - demos.heroin.trade { - root * /var/www/demos/ - file_server browse - } - jellyfin.heroin.trade { - reverse_proxy http://127.0.0.1:8096 - } - calibre.heroin.trade { - reverse_proxy http://localhost:3000 - } - grafana.heroin.trade { - reverse_proxy http://127.0.0.1:2342 - } + syncthing.heroin.trade { + reverse_proxy http://localhost:8384 { + header_up Some-Header "localhost" + } + } + demos.heroin.trade { + root * /var/www/demos/ + file_server browse + } + jellyfin.heroin.trade { + reverse_proxy http://127.0.0.1:8096 + } + calibre.heroin.trade { + reverse_proxy http://localhost:3000 + } + grafana.heroin.trade { + reverse_proxy http://127.0.0.1:2342 + } + uptime.heroin.trade { + reverse_proxy 127.0.0.1:3001 + } ''; }; @@ -87,11 +91,16 @@ with lib; { "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN7UkcmSVo+SeB5Obevz3mf3UHruYxn0UHUzoOs2gDBy xqtc@asmodeus" ]; + programs.bash.blesh.enable = true; + programs.bash.shellInit = "cd /home/xqtc/nixos-config/; export GIT_REVISION_CONFIG=$(nix flake metadata --json | jq -r '.locked.rev'); echo $GIT_REVISION_CONFIG; cd;"; + environment.systemPackages = with pkgs; [ neovim vim git wget + jq + zola ]; programs.mtr.enable = true; diff --git a/hosts/x86_64-linux/beleth/uptime.nix b/hosts/x86_64-linux/beleth/uptime.nix new file mode 100644 index 0000000..1cc3d53 --- /dev/null +++ b/hosts/x86_64-linux/beleth/uptime.nix @@ -0,0 +1,6 @@ +{config, lib, ...}: +{ + services.uptime-kuma = { + enable = true; + }; +}