mirror of
https://git.gay/xqtc/nixos-config
synced 2024-11-25 21:13:54 +01:00
Merge branch 'main' of git.sr.ht:~xqtc/nixos-config
This commit is contained in:
commit
52c7fb5a84
|
@ -13,6 +13,7 @@ with lib; {
|
|||
./calibre-web.nix
|
||||
./transmission.nix
|
||||
./lanrarari.nix
|
||||
./uptime.nix
|
||||
../../gc.nix
|
||||
../../../common
|
||||
];
|
||||
|
@ -22,7 +23,7 @@ with lib; {
|
|||
email = "xqtc@tutanota.com";
|
||||
configFile = pkgs.writeText "Caddyfile" ''
|
||||
heroin.trade {
|
||||
root * /var/www/website/build/
|
||||
root * /var/www/website/public/
|
||||
file_server
|
||||
}
|
||||
syncthing.heroin.trade {
|
||||
|
@ -43,6 +44,9 @@ with lib; {
|
|||
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;
|
||||
|
|
6
hosts/x86_64-linux/beleth/uptime.nix
Normal file
6
hosts/x86_64-linux/beleth/uptime.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{config, lib, ...}:
|
||||
{
|
||||
services.uptime-kuma = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue