aboutsummaryrefslogtreecommitdiff
path: root/nixos/hosts/ev/private.nix
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2026-09-30 10:59:24 +0200
committerMartin Fischer <martin@push-f.com>2026-09-30 11:00:58 +0200
commit748d3282d351107723e79060a9471b08e66c4670 (patch)
treee1d52d7ae8a4095683a70e1dd2079de17ddc5c60 /nixos/hosts/ev/private.nix
parentd1f67c929ae7397b7ae241bb59932113b5f9e4c1 (diff)
refactor: move absolute path imports to private.nix
Diffstat (limited to 'nixos/hosts/ev/private.nix')
-rw-r--r--nixos/hosts/ev/private.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/nixos/hosts/ev/private.nix b/nixos/hosts/ev/private.nix
new file mode 100644
index 0000000..a5404fc
--- /dev/null
+++ b/nixos/hosts/ev/private.nix
@@ -0,0 +1,50 @@
+{ config, lib, pkgs, ... }:
+
+let
+ ports = import ./ports.nix;
+in
+{
+ imports = [
+ ./default.nix
+ # Not yet published; will be eventually.
+ /home/martin/repos/exercise-log/service.nix
+ /home/martin/repos/hosehawk/services/hosenest.nix
+ /home/martin/repos/hosehawk/services/hosehawk.nix
+ ];
+
+ exerciseLog = {
+ enable = true;
+ port = ports.exerciseLog;
+ };
+
+ services.hosenest = {
+ enable = true;
+ port = ports.hosehawk;
+ };
+
+ services.hosehawk = {
+ enable = true;
+ hosenestUrl = "http://localhost:${toString ports.hosehawk}/";
+ prometheusPort = ports.prometheusHoseHawk;
+ };
+
+ monitoring.prometheusScrapeConfigs = [
+ {
+ job_name = "exercise-log";
+ scrape_interval = "10m";
+ static_configs = [{
+ targets = ["localhost:${toString ports.exerciseLog}"];
+ }];
+ }
+ {
+ job_name = "hosehawk";
+ static_configs = [{
+ targets = ["localhost:${toString ports.prometheusHoseHawk}"];
+ }];
+ }
+ ];
+
+ restic-database-backups.sqliteDatabases = {
+ exercise-log = "/var/lib/exercise-log/database.sqlite";
+ };
+}