Replaces Vesktop for quick cross-device note-passing. Uses Flatnotes with auth disabled so Authelia is the only login required. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
607 B
Nix
20 lines
607 B
Nix
# services/memos.nix — Lightweight self-hosted notes at notes.nordhammer.it
|
|
# Uses Flatnotes with auth disabled — Authelia is the only gate.
|
|
{ config, lib, ... }:
|
|
{
|
|
config = lib.mkIf (config.networking.hostName == "FredOS-Mediaserver") {
|
|
|
|
virtualisation.oci-containers.containers.flatnotes = {
|
|
image = "dullage/flatnotes:latest";
|
|
ports = [ "127.0.0.1:5230:8080" ];
|
|
volumes = [ "/var/lib/flatnotes:/app/data" ];
|
|
environment = {
|
|
FLATNOTES_AUTH_TYPE = "none";
|
|
};
|
|
};
|
|
|
|
systemd.tmpfiles.rules = [
|
|
"d /var/lib/flatnotes 0750 root root -"
|
|
];
|
|
};
|
|
}
|