Merge branch 'main' of git.sr.ht:~xqtc/nixos-config

This commit is contained in:
xqtc161 2024-04-18 19:19:44 +02:00
commit 52c7fb5a84
2 changed files with 36 additions and 21 deletions

View file

@ -13,6 +13,7 @@ with lib; {
./calibre-web.nix ./calibre-web.nix
./transmission.nix ./transmission.nix
./lanrarari.nix ./lanrarari.nix
./uptime.nix
../../gc.nix ../../gc.nix
../../../common ../../../common
]; ];
@ -21,28 +22,31 @@ with lib; {
enable = true; enable = true;
email = "xqtc@tutanota.com"; email = "xqtc@tutanota.com";
configFile = pkgs.writeText "Caddyfile" '' configFile = pkgs.writeText "Caddyfile" ''
heroin.trade { heroin.trade {
root * /var/www/website/build/ root * /var/www/website/public/
file_server file_server
}
syncthing.heroin.trade {
reverse_proxy http://localhost:8384 {
header_up Some-Header "localhost"
} }
} syncthing.heroin.trade {
demos.heroin.trade { reverse_proxy http://localhost:8384 {
root * /var/www/demos/ header_up Some-Header "localhost"
file_server browse }
} }
jellyfin.heroin.trade { demos.heroin.trade {
reverse_proxy http://127.0.0.1:8096 root * /var/www/demos/
} file_server browse
calibre.heroin.trade { }
reverse_proxy http://localhost:3000 jellyfin.heroin.trade {
} reverse_proxy http://127.0.0.1:8096
grafana.heroin.trade { }
reverse_proxy http://127.0.0.1:2342 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" "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; [ environment.systemPackages = with pkgs; [
neovim neovim
vim vim
git git
wget wget
jq
zola
]; ];
programs.mtr.enable = true; programs.mtr.enable = true;

View file

@ -0,0 +1,6 @@
{config, lib, ...}:
{
services.uptime-kuma = {
enable = true;
};
}