38 lines
618 B
Nix
38 lines
618 B
Nix
{ config, lib, pkgs, inputs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
networking = {
|
|
hostName = mkDefault "uptimekuma";
|
|
useDHCP = false;
|
|
nameservers = [ "1.1.1.1" ];
|
|
};
|
|
|
|
imports = [
|
|
../modules/malobeo_user.nix
|
|
../modules/sshd.nix
|
|
];
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 ];
|
|
|
|
services.nginx = {
|
|
enable = true;
|
|
virtualHosts."status.malobeo.org" = {
|
|
locations."/" = {
|
|
proxyPass = "http://127.0.0.1:3001";
|
|
extraConfig = ''
|
|
'';
|
|
};
|
|
|
|
};
|
|
};
|
|
|
|
services.uptime-kuma = {
|
|
enable = true;
|
|
};
|
|
|
|
system.stateVersion = "22.11"; # Did you read the comment?
|
|
}
|
|
|