From 99d6d67129609a800d34fce2687c9f5718e04444 Mon Sep 17 00:00:00 2001 From: "Jill \"oatmealine\" Monoids" Date: Fri, 23 Feb 2024 12:47:14 +0100 Subject: [PATCH] nlw-api, grafana, other stuff --- hosts/lucent-firepit/default.nix | 7 ++++++- hosts/lucent-firepit/webapps/default.nix | 14 +++++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/hosts/lucent-firepit/default.nix b/hosts/lucent-firepit/default.nix index 24e1c65..d56a542 100644 --- a/hosts/lucent-firepit/default.nix +++ b/hosts/lucent-firepit/default.nix @@ -16,6 +16,7 @@ in { inputs.nix-minecraft.nixosModules.minecraft-servers #inputs.watch-party.nixosModules.watch-party inputs.cohost-blogger.nixosModules.cohost-blogger + inputs.nlw-api.nixosModules.nlw-api inputs.vscode-server.nixosModules.default ]; @@ -28,6 +29,8 @@ in { ]; }; + services.logrotate.checkConfig = false; + users.groups.dotfiles = {}; users.groups.yugoslavia = {}; @@ -35,7 +38,7 @@ in { # aether??? is that... reference.../.??? aether https://www.curseforge.com/minecraft/mc-mods/aether mod Curseforge minecraft Forge Patreon Chat twitter code license Assets license All rights reserved categories Last Updated apr 17 2021 Game Version 1.12.2 aether aether = { conf = { - packages = with pkgs; [ bat duf broot helix nil ]; + packages = with pkgs; [ bat duf broot helix nil packwiz ]; shell = pkgs.unstable.fish; extraGroups = [ "wheel" "nix-users" "dotfiles" ]; initialHashedPassword = "!"; @@ -65,6 +68,7 @@ in { "oatmealine@void-defragmented" "oatmealine@beppy-phone" "oatmealine@boykisser" + "oatmealine@goop-drive" ]; }; @@ -235,6 +239,7 @@ in { extraRules = [ { users = [ "aether" ]; noPass = false; persist = true; keepEnv = true; } { users = [ "oatmealine" ]; noPass = true; persist = false; keepEnv = true; } + { users = [ "remote" ]; noPass = true; persist = false; keepEnv = true; } ]; }; diff --git a/hosts/lucent-firepit/webapps/default.nix b/hosts/lucent-firepit/webapps/default.nix index 85107e3..ad0a87d 100644 --- a/hosts/lucent-firepit/webapps/default.nix +++ b/hosts/lucent-firepit/webapps/default.nix @@ -9,6 +9,12 @@ in { domain = "blog.oat.zone"; port = 3500; }; + services.nlw-api = { + enable = true; + domain = "nlw.oat.zone"; + apiKey = builtins.readFile /etc/sheets-api-key; + port = 1995; + }; modules = { services = { @@ -38,7 +44,7 @@ in { vaultwarden = { enable = true; - domain = "vault.aether.gay"; + domain = "vault.dark-firepit.cloud"; }; # not entirely necessary but makes it so that invalid domains and/or direct ip access aborts connection @@ -106,6 +112,12 @@ in { matomo = { enable = true; }; + + metrics = { + enable = true; + domain = "grafana.dark-firepit.cloud"; + port = 2342; + }; }; };