From fcd20e733ff42495eb6bdfac4cebe91d07a157ff Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Mon, 29 Apr 2024 22:50:50 +0200 Subject: [PATCH] sigma: memos --- hosts/sigma/default.nix | 1 + hosts/sigma/memos.nix | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 hosts/sigma/memos.nix diff --git a/hosts/sigma/default.nix b/hosts/sigma/default.nix index d60d066..158921f 100644 --- a/hosts/sigma/default.nix +++ b/hosts/sigma/default.nix @@ -11,6 +11,7 @@ ./hardware.nix ./jellyfin.nix ./mail.nix + ./memos.nix ./network.nix ./sonarr.nix ]; diff --git a/hosts/sigma/memos.nix b/hosts/sigma/memos.nix new file mode 100644 index 0000000..e36f504 --- /dev/null +++ b/hosts/sigma/memos.nix @@ -0,0 +1,20 @@ +{...}: { + virtualisation.oci-containers.containers = { + memos = { + # https://www.usememos.com/docs/install/self-hosting + image = "docker.io/neosmemo/memos:stable"; + environment = { + # https://github.com/usememos/memos/issues/2433#issuecomment-1797316081 + MEMOS_METRIC = "false"; + }; + ports = [ + # TODO: for some *very* weird reason, exposing the port does not work + # if we use the same port on the host and inside the container. Why?? + "127.0.0.1:5231:5230" + ]; + volumes = [ + "memos:/var/opt/memos" + ]; + }; + }; +}