nixos/systems/management/default.nix

30 lines
715 B
Nix
Raw Normal View History

2022-09-06 20:14:29 +02:00
{ hostname, inputs, pkgs, ... }:
let
domain = "test.2li.ch";
in
2022-03-15 16:56:05 +01:00
{
imports = [
(import "${inputs.self}/systems/raspi4" {
2022-09-06 20:14:29 +02:00
ip = "10.7.89.150";
inherit hostname inputs pkgs;
2022-03-15 16:56:05 +01:00
})
"${inputs.self}/modules/docker"
2022-10-24 10:40:50 +02:00
# "${inputs.self}/modules/logs-share"
# I currently can't install lnav because it is not building on aarch64
# https://github.com/NixOS/nixpkgs/issues/197512
2022-06-20 21:06:55 +02:00
"${inputs.self}/modules/tmux"
2022-03-15 16:56:05 +01:00
];
services.nginx.virtualHosts."${domain}".locations = {
"/".extraConfig = ''
try_files $uri $uri/ = 404;
'';
"/tt-rss/cache".extraConfig = ''
aio threads;
internal;
'';
"/tt-rss/backups".extraConfig = ''
internal;
'';
};
2022-03-15 16:56:05 +01:00
}