Wire the offline-first todo app (github: local /home/alex/code/todo) into manatee, following the app-module convention: - flake input `todo` (local git checkout for now; gitea URL commented) with nixpkgs following. - hosts/manatee/modules/todo: mod.todo option importing the app's NixOS module; runs on 127.0.0.1:8091, secureCookies, token from agenix; the host owns the nginx vhost (todo.ppp.pm, forceSSL + useACMEHost) and homepage card. - mod.todo.enable = true. - certs: todo.ppp.pm DNS-01 cert via hetzner. - home-assistant DNS updater: add `todo` to the Hetzner subdomain list. - secrets: todo-token.age (encrypted access token) + recipients in secrets.nix.
34 lines
809 B
Nix
34 lines
809 B
Nix
{ lib, ... }:
|
|
let
|
|
toModulePath = dir: _: ./. + "/${dir}";
|
|
filterDirs = dirs: lib.attrsets.filterAttrs (_: type: type == "directory") dirs;
|
|
in
|
|
{
|
|
imports = lib.mapAttrsToList toModulePath (filterDirs (builtins.readDir ./.));
|
|
|
|
config = {
|
|
mod = {
|
|
gc.configurationLimit = 10;
|
|
|
|
ssh.enable = true;
|
|
git.enable = true;
|
|
tmux.enable = true;
|
|
|
|
nginx.enable = true;
|
|
syncthing.enable = true;
|
|
transmission.enable = true;
|
|
audiobookshelf.enable = true;
|
|
jellyfin.enable = true;
|
|
immich.enable = false;
|
|
navidrome.enable = true;
|
|
komga.enable = true;
|
|
romm.enable = true;
|
|
homepage.enable = true;
|
|
disk-smart.enable = true;
|
|
puppy-tracker.enable = true;
|
|
solo-referee.enable = true;
|
|
todo.enable = true;
|
|
};
|
|
};
|
|
}
|