manatee: Add puppy-tracker module

This commit is contained in:
Alexander Heldt
2026-06-21 17:50:25 +00:00
parent 80ed5a1017
commit 6477f2b39b
2 changed files with 38 additions and 0 deletions
@@ -0,0 +1,37 @@
{
inputs,
lib,
config,
...
}:
let
enabled = config.mod.puppy-tracker.enable;
port = 8089;
in
{
options = {
mod.puppy-tracker = {
enable = lib.mkEnableOption "Enable puppy-tracker module";
};
};
imports = [
inputs.puppy-tracker.nixosModules.default
];
config = lib.mkIf enabled {
mod.homepage.services = [
{
name = "Puppy Tracker";
port = port;
description = "Sleep, meals, pees, poos";
}
];
services.puppy-tracker = {
enable = true;
inherit port;
openFirewall = true;
};
};
}