From 68d957e349836df9045e4477f29985e436efe607 Mon Sep 17 00:00:00 2001 From: notohh Date: Fri, 23 Jun 2023 11:03:32 -0400 Subject: [PATCH] sora: init uptime-kuma --- hosts/sora/default.nix | 9 ++------- hosts/sora/services/default.nix | 1 + hosts/sora/services/uptimekuma.nix | 10 ++++++++++ 3 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 hosts/sora/services/uptimekuma.nix diff --git a/hosts/sora/default.nix b/hosts/sora/default.nix index 42211be..c383da3 100644 --- a/hosts/sora/default.nix +++ b/hosts/sora/default.nix @@ -2,16 +2,11 @@ imports = [ ./hardware-configuration.nix ./networking.nix + ./services ../../modules ]; - environment.systemPackages = with pkgs; [ - git - croc - helix - ]; - - boot.cleanTmpDir = true; + boot.tmp.cleanOnBoot = true; zramSwap.enable = true; networking.hostName = "sora"; networking.domain = ""; diff --git a/hosts/sora/services/default.nix b/hosts/sora/services/default.nix index 65740a9..39f2da1 100644 --- a/hosts/sora/services/default.nix +++ b/hosts/sora/services/default.nix @@ -1,4 +1,5 @@ {...}: { imports = [ + ./uptimekuma.nix ]; } diff --git a/hosts/sora/services/uptimekuma.nix b/hosts/sora/services/uptimekuma.nix new file mode 100644 index 0000000..4122bbc --- /dev/null +++ b/hosts/sora/services/uptimekuma.nix @@ -0,0 +1,10 @@ +_: { + networking.firewall.allowedTCPPorts = [4000]; + services.uptime-kuma = { + enable = true; + settings = { + HOST = "100.87.54.48"; + PORT = "4000"; + }; + }; +}